]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | error[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 | 4 | LL | 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 | ||
11 | error[E0119]: conflicting implementations of trait `std::convert::From<S>` for type `S`: | |
9fa01778 | 12 | --> $DIR/conflict-with-std.rs:13:1 |
abe05a73 | 13 | | |
0531ce1d | 14 | LL | 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 | ||
20 | error[E0119]: conflicting implementations of trait `std::convert::TryFrom<X>` for type `X`: | |
9fa01778 | 21 | --> $DIR/conflict-with-std.rs:20:1 |
abe05a73 | 22 | | |
0531ce1d | 23 | LL | 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 | |
30 | error: aborting due to 3 previous errors | |
31 | ||
0531ce1d | 32 | For more information about this error, try `rustc --explain E0119`. |