]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0117]: only traits defined in the current crate can be implemented for arbitrary types |
0731742a | 2 | --> $DIR/coherence-orphan.rs:13:1 |
b7449926 XL |
3 | | |
4 | LL | impl TheTrait<usize> for isize { } | |
e74abb32 XL |
5 | | ^^^^^---------------^^^^^----- |
6 | | | | | | |
7 | | | | `isize` is not defined in the current crate | |
8 | | | `usize` is not defined in the current crate | |
9 | | impl doesn't use only types from inside the current crate | |
b7449926 | 10 | | |
b7449926 XL |
11 | = note: define and implement a trait or new type instead |
12 | ||
13 | error[E0117]: only traits defined in the current crate can be implemented for arbitrary types | |
0731742a | 14 | --> $DIR/coherence-orphan.rs:21:1 |
b7449926 XL |
15 | | |
16 | LL | impl !Send for Vec<isize> { } | |
e74abb32 XL |
17 | | ^^^^^^^^^^^^^^^---------- |
18 | | | | | |
19 | | | `std::vec::Vec` is not defined in the current crate | |
20 | | impl doesn't use only types from inside the current crate | |
b7449926 | 21 | | |
b7449926 XL |
22 | = note: define and implement a trait or new type instead |
23 | ||
24 | error: aborting due to 2 previous errors | |
25 | ||
26 | For more information about this error, try `rustc --explain E0117`. |