1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
4 extern crate coherence_lib as lib;
9 struct Local1<T>(Rc<T>);
11 impl Remote1<Box<String>> for i32 {
12 //~^ ERROR only traits defined in the current crate
13 // | can be implemented for arbitrary types [E0117]
15 impl Remote1<Box<Rc<i32>>> for f64 {
16 //~^ ERROR only traits defined in the current crate
17 // | can be implemented for arbitrary types [E0117]
19 impl<T> Remote1<Box<Rc<T>>> for f32 {
20 //~^ ERROR only traits defined in the current crate
21 // | can be implemented for arbitrary types [E0117]