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/associated-consts/issue-63496.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/ui/associated-consts/issue-63496.stderr (limited to 'tests/ui/associated-consts/issue-63496.stderr') diff --git a/tests/ui/associated-consts/issue-63496.stderr b/tests/ui/associated-consts/issue-63496.stderr new file mode 100644 index 000000000..f2a4e01ad --- /dev/null +++ b/tests/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