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 --- .../unboxed-closure-sugar-nonexistent-trait.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr (limited to 'src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr') diff --git a/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr b/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr new file mode 100644 index 000000000..8addc0303 --- /dev/null +++ b/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr @@ -0,0 +1,21 @@ +error[E0405]: cannot find trait `Nonexist` in this scope + --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:1:8 + | +LL | fn f isize>(x: F) {} + | ^^^^^^^^ not found in this scope + +error[E0404]: expected trait, found type alias `Typedef` + --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:6:8 + | +LL | fn g isize>(x: F) {} + | ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used as traits + | +help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias + | +LL | trait Typedef = isize; + | + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0404, E0405. +For more information about an error, try `rustc --explain E0404`. -- cgit v1.2.3