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 --- src/test/ui/associated-consts/issue-63496.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/ui/associated-consts/issue-63496.stderr (limited to 'src/test/ui/associated-consts/issue-63496.stderr') diff --git a/src/test/ui/associated-consts/issue-63496.stderr b/src/test/ui/associated-consts/issue-63496.stderr new file mode 100644 index 000000000..f2a4e01ad --- /dev/null +++ b/src/test/ui/associated-consts/issue-63496.stderr @@ -0,0 +1,21 @@ +error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type + --> $DIR/issue-63496.rs:4:21 + | +LL | const C: usize; + | --------------- `A::C` defined here +LL | +LL | fn f() -> ([u8; A::C], [u8; A::C]); + | ^^^^ cannot refer to the associated constant of trait + +error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type + --> $DIR/issue-63496.rs:4:33 + | +LL | const C: usize; + | --------------- `A::C` defined here +LL | +LL | fn f() -> ([u8; A::C], [u8; A::C]); + | ^^^^ cannot refer to the associated constant of trait + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0790`. -- cgit v1.2.3