]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/e0119/issue-28981.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / error-codes / e0119 / issue-28981.stderr
CommitLineData
abe05a73 1error[E0119]: conflicting implementations of trait `std::ops::Deref` for type `&_`:
0731742a 2 --> $DIR/issue-28981.rs:5:1
abe05a73 3 |
532ac7d7 4LL | impl<Foo> Deref for Foo { }
ff7c6d11 5 | ^^^^^^^^^^^^^^^^^^^^^^^
abe05a73
XL
6 |
7 = note: conflicting implementation in crate `core`:
a1dfa0c6 8 - impl<T> std::ops::Deref for &T
abe05a73
XL
9 where T: ?Sized;
10
0731742a 11error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g., `MyStruct<Foo>`)
e74abb32 12 --> $DIR/issue-28981.rs:5:6
abe05a73 13 |
532ac7d7 14LL | impl<Foo> Deref for Foo { }
e74abb32 15 | ^^^ type parameter `Foo` must be used as the type parameter for some local type
0531ce1d 16 |
60c5eb7d 17 = note: implementing a foreign trait is only possible if at least one of the types for which is it implemented is local
0531ce1d 18 = note: only traits defined in the current crate can be implemented for a type parameter
abe05a73
XL
19
20error: aborting due to 2 previous errors
21
48663c56 22Some errors have detailed explanations: E0119, E0210.
0531ce1d 23For more information about an error, try `rustc --explain E0119`.