From 631cd5845e8de329d0e227aaa707d7ea228b8f8f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:29 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- .../traits/reservation-impl/coherence-conflict.old.stderr | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/ui/traits/reservation-impl/coherence-conflict.old.stderr (limited to 'tests/ui/traits/reservation-impl/coherence-conflict.old.stderr') diff --git a/tests/ui/traits/reservation-impl/coherence-conflict.old.stderr b/tests/ui/traits/reservation-impl/coherence-conflict.old.stderr new file mode 100644 index 000000000..393350ea3 --- /dev/null +++ b/tests/ui/traits/reservation-impl/coherence-conflict.old.stderr @@ -0,0 +1,13 @@ +error[E0119]: conflicting implementations of trait `OtherTrait` for type `()` + --> $DIR/coherence-conflict.rs:12:1 + | +LL | impl OtherTrait for () {} + | ---------------------- first implementation here +LL | impl OtherTrait for T {} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()` + | + = note: this impl is reserved + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0119`. -- cgit v1.2.3