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 --- .../inheritance/repeated-supertrait-ambig.stderr | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr (limited to 'src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr') diff --git a/src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr b/src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr new file mode 100644 index 000000000..cab0ccdf7 --- /dev/null +++ b/src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr @@ -0,0 +1,55 @@ +error[E0277]: the trait bound `dyn CompareToInts: CompareTo` is not satisfied + --> $DIR/repeated-supertrait-ambig.rs:26:7 + | +LL | c.same_as(22) + | ^^^^^^^ the trait `CompareTo` is not implemented for `dyn CompareToInts` + | + = help: the following other types implement trait `CompareTo`: + > + > + +error[E0277]: the trait bound `C: CompareTo` is not satisfied + --> $DIR/repeated-supertrait-ambig.rs:30:7 + | +LL | c.same_as(22) + | ^^^^^^^ the trait `CompareTo` is not implemented for `C` + | +help: consider further restricting this bound + | +LL | fn with_trait>(c: &C) -> bool { + | ++++++++++++++++ + +error[E0277]: the trait bound `dyn CompareToInts: CompareTo` is not satisfied + --> $DIR/repeated-supertrait-ambig.rs:34:5 + | +LL | ::same_as(c, 22) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo` is not implemented for `dyn CompareToInts` + | + = help: the following other types implement trait `CompareTo`: + > + > + +error[E0277]: the trait bound `C: CompareTo` is not satisfied + --> $DIR/repeated-supertrait-ambig.rs:38:5 + | +LL | CompareTo::same_as(c, 22) + | ^^^^^^^^^^^^^^^^^^ the trait `CompareTo` is not implemented for `C` + | +help: consider further restricting this bound + | +LL | fn with_ufcs2>(c: &C) -> bool { + | ++++++++++++++++ + +error[E0277]: the trait bound `i64: CompareTo` is not satisfied + --> $DIR/repeated-supertrait-ambig.rs:42:23 + | +LL | assert_eq!(22_i64.same_as(22), true); + | ^^^^^^^ the trait `CompareTo` is not implemented for `i64` + | + = help: the following other types implement trait `CompareTo`: + > + > + +error: aborting due to 5 previous errors + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3