summaryrefslogtreecommitdiffstats
path: root/tests/ui/use/use-super-global-path.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/use/use-super-global-path.stderr')
-rw-r--r--tests/ui/use/use-super-global-path.stderr21
1 files changed, 21 insertions, 0 deletions
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`.