]> git.proxmox.com Git - rustc.git/blame - src/test/ui/e0119/conflict-with-std.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / e0119 / conflict-with-std.stderr
CommitLineData
abe05a73 1error[E0119]: conflicting implementations of trait `std::convert::AsRef<Q>` for type `std::boxed::Box<Q>`:
9fa01778 2 --> $DIR/conflict-with-std.rs:6:1
abe05a73 3 |
0531ce1d 4LL | impl AsRef<Q> for Box<Q> { //~ ERROR conflicting implementations
ff7c6d11 5 | ^^^^^^^^^^^^^^^^^^^^^^^^
abe05a73
XL
6 |
7 = note: conflicting implementation in crate `alloc`:
8 - impl<T> std::convert::AsRef<T> for std::boxed::Box<T>
9 where T: ?Sized;
10
11error[E0119]: conflicting implementations of trait `std::convert::From<S>` for type `S`:
9fa01778 12 --> $DIR/conflict-with-std.rs:13:1
abe05a73 13 |
0531ce1d 14LL | impl From<S> for S { //~ ERROR conflicting implementations
ff7c6d11 15 | ^^^^^^^^^^^^^^^^^^
abe05a73
XL
16 |
17 = note: conflicting implementation in crate `core`:
18 - impl<T> std::convert::From<T> for T;
19
20error[E0119]: conflicting implementations of trait `std::convert::TryFrom<X>` for type `X`:
9fa01778 21 --> $DIR/conflict-with-std.rs:20:1
abe05a73 22 |
0531ce1d 23LL | impl TryFrom<X> for X { //~ ERROR conflicting implementations
ff7c6d11 24 | ^^^^^^^^^^^^^^^^^^^^^
abe05a73
XL
25 |
26 = note: conflicting implementation in crate `core`:
27 - impl<T, U> std::convert::TryFrom<U> for T
9fa01778 28 where U: std::convert::Into<T>;
abe05a73
XL
29
30error: aborting due to 3 previous errors
31
0531ce1d 32For more information about this error, try `rustc --explain E0119`.