]> git.proxmox.com Git - rustc.git/blame - src/test/ui/e0119/conflict-with-std.stderr
New upstream version 1.24.1+dfsg1
[rustc.git] / src / test / ui / e0119 / conflict-with-std.stderr
CommitLineData
abe05a73
XL
1error[E0119]: conflicting implementations of trait `std::convert::AsRef<Q>` for type `std::boxed::Box<Q>`:
2 --> $DIR/conflict-with-std.rs:17:1
3 |
ff7c6d11
XL
417 | impl AsRef<Q> for Box<Q> { //~ ERROR conflicting implementations
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`:
12 --> $DIR/conflict-with-std.rs:24:1
13 |
ff7c6d11
XL
1424 | impl From<S> for S { //~ ERROR conflicting implementations
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`:
21 --> $DIR/conflict-with-std.rs:31:1
22 |
ff7c6d11
XL
2331 | impl TryFrom<X> for X { //~ ERROR conflicting implementations
24 | ^^^^^^^^^^^^^^^^^^^^^
abe05a73
XL
25 |
26 = note: conflicting implementation in crate `core`:
27 - impl<T, U> std::convert::TryFrom<U> for T
28 where T: std::convert::From<U>;
29
30error: aborting due to 3 previous errors
31