]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/e0119/conflict-with-std.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / e0119 / conflict-with-std.stderr
1 error[E0119]: conflicting implementations of trait `std::convert::AsRef<Q>` for type `std::boxed::Box<Q>`
2   --> $DIR/conflict-with-std.rs:5:1
3    |
4 LL | impl AsRef<Q> for Box<Q> {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: conflicting implementation in crate `alloc`:
8            - impl<T, A> AsRef<T> for Box<T, A>
9              where A: Allocator, T: ?Sized;
10
11 error[E0119]: conflicting implementations of trait `std::convert::From<S>` for type `S`
12   --> $DIR/conflict-with-std.rs:12:1
13    |
14 LL | impl From<S> for S {
15    | ^^^^^^^^^^^^^^^^^^
16    |
17    = note: conflicting implementation in crate `core`:
18            - impl<T> From<T> for T;
19
20 error[E0119]: conflicting implementations of trait `std::convert::TryFrom<X>` for type `X`
21   --> $DIR/conflict-with-std.rs:19:1
22    |
23 LL | impl TryFrom<X> for X {
24    | ^^^^^^^^^^^^^^^^^^^^^
25    |
26    = note: conflicting implementation in crate `core`:
27            - impl<T, U> TryFrom<U> for T
28              where U: Into<T>;
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0119`.