From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/error-codes/e0119/conflict-with-std.stderr | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/test/ui/error-codes/e0119/conflict-with-std.stderr (limited to 'src/test/ui/error-codes/e0119/conflict-with-std.stderr') diff --git a/src/test/ui/error-codes/e0119/conflict-with-std.stderr b/src/test/ui/error-codes/e0119/conflict-with-std.stderr new file mode 100644 index 000000000..3ff96a6a4 --- /dev/null +++ b/src/test/ui/error-codes/e0119/conflict-with-std.stderr @@ -0,0 +1,32 @@ +error[E0119]: conflicting implementations of trait `std::convert::AsRef` for type `std::boxed::Box` + --> $DIR/conflict-with-std.rs:5:1 + | +LL | impl AsRef for Box { + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `alloc`: + - impl AsRef for Box + where A: Allocator, T: ?Sized; + +error[E0119]: conflicting implementations of trait `std::convert::From` for type `S` + --> $DIR/conflict-with-std.rs:12:1 + | +LL | impl From for S { + | ^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `core`: + - impl From for T; + +error[E0119]: conflicting implementations of trait `std::convert::TryFrom` for type `X` + --> $DIR/conflict-with-std.rs:19:1 + | +LL | impl TryFrom for X { + | ^^^^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `core`: + - impl TryFrom for T + where U: Into; + +error: aborting due to 3 previous errors + +For more information about this error, try `rustc --explain E0119`. -- cgit v1.2.3