]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-orphan.old.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-orphan.old.stderr
CommitLineData
b7449926 1error[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 |
4LL | 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
13error[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 |
16LL | 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
24error: aborting due to 2 previous errors
25
26For more information about this error, try `rustc --explain E0117`.