• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
3 
4 extern crate coherence_lib as lib;
5 use lib::*;
6 use std::rc::Rc;
7 
8 struct Local;
9 
10 impl<T> Remote1<Box<T>> for u32 {
11     //~^ ERROR type parameter `T` must be used as the type parameter for some local type
12 }
13 
14 impl<'a, T> Remote1<&'a T> for u32 {
15     //~^ ERROR type parameter `T` must be used as the type parameter for some local type
16 }
17 
main()18 fn main() {}
19