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/use/use-super-global-path.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/ui/use/use-super-global-path.stderr (limited to 'tests/ui/use/use-super-global-path.stderr') diff --git a/tests/ui/use/use-super-global-path.stderr b/tests/ui/use/use-super-global-path.stderr new file mode 100644 index 000000000..7014a12e9 --- /dev/null +++ b/tests/ui/use/use-super-global-path.stderr @@ -0,0 +1,21 @@ +error[E0433]: failed to resolve: global paths cannot start with `super` + --> $DIR/use-super-global-path.rs:7:11 + | +LL | use ::super::{S, Z}; + | ^^^^^ global paths cannot start with `super` + +error[E0433]: failed to resolve: global paths cannot start with `super` + --> $DIR/use-super-global-path.rs:7:11 + | +LL | use ::super::{S, Z}; + | ^^^^^ global paths cannot start with `super` + +error[E0433]: failed to resolve: global paths cannot start with `super` + --> $DIR/use-super-global-path.rs:11:15 + | +LL | use ::super::main; + | ^^^^^ global paths cannot start with `super` + +error: aborting due to 3 previous errors + +For more information about this error, try `rustc --explain E0433`. -- cgit v1.2.3