]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
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 Remote for Box<i32> { | |
11 | //~^ ERROR only traits defined in the current crate | |
12 | // | can be implemented for arbitrary types [E0117] | |
13 | } | |
14 | impl<T> Remote for Box<Rc<T>> { | |
15 | //~^ ERROR only traits defined in the current crate | |
16 | // | can be implemented for arbitrary types [E0117] | |
17 | } | |
18 | ||
19 | fn main() {} |