From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/assoc-type-in-superbad.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/traits/assoc-type-in-superbad.stderr (limited to 'tests/ui/traits/assoc-type-in-superbad.stderr') diff --git a/tests/ui/traits/assoc-type-in-superbad.stderr b/tests/ui/traits/assoc-type-in-superbad.stderr new file mode 100644 index 000000000..7fa1d2c2e --- /dev/null +++ b/tests/ui/traits/assoc-type-in-superbad.stderr @@ -0,0 +1,15 @@ +error[E0271]: expected `IntoIter` to be an iterator that yields `u32`, but it yields `i32` + --> $DIR/assoc-type-in-superbad.rs:12:16 + | +LL | type Key = u32; + | ^^^ expected `u32`, found `i32` + | +note: required by a bound in `Foo` + --> $DIR/assoc-type-in-superbad.rs:7:25 + | +LL | pub trait Foo: Iterator::Key> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Foo` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0271`. -- cgit v1.2.3