about summary refs log tree commit diff
path: root/tests/ui/reachable/unreachable-variant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/reachable/unreachable-variant.stderr')
-rw-r--r--tests/ui/reachable/unreachable-variant.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/reachable/unreachable-variant.stderr b/tests/ui/reachable/unreachable-variant.stderr
new file mode 100644
index 00000000000..6c27a2756f7
--- /dev/null
+++ b/tests/ui/reachable/unreachable-variant.stderr
@@ -0,0 +1,15 @@
+error[E0603]: module `super_sekrit` is private
+  --> $DIR/unreachable-variant.rs:6:21
+   |
+LL |     let _x = other::super_sekrit::sooper_sekrit::baz;
+   |                     ^^^^^^^^^^^^ private module
+   |
+note: the module `super_sekrit` is defined here
+  --> $DIR/auxiliary/unreachable_variant.rs:1:1
+   |
+LL | mod super_sekrit {
+   | ^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0603`.