about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr')
-rw-r--r--src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr b/src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr
new file mode 100644
index 00000000000..aa4817163e3
--- /dev/null
+++ b/src/test/ui/compile-fail-migration/resolve-bad-visibility.stderr
@@ -0,0 +1,34 @@
+error: visibilities can only be restricted to ancestor modules
+  --> $DIR/resolve-bad-visibility.rs:16:8
+   |
+LL | pub(in std::vec) struct F; //~ ERROR visibilities can only be restricted to ancestor modules
+   |        ^^^^^^^^
+
+error[E0577]: expected module, found enum `E`
+  --> $DIR/resolve-bad-visibility.rs:14:8
+   |
+LL | pub(in E) struct S; //~ ERROR expected module, found enum `E`
+   |        ^ not a module
+
+error[E0577]: expected module, found trait `Tr`
+  --> $DIR/resolve-bad-visibility.rs:15:8
+   |
+LL | pub(in Tr) struct Z; //~ ERROR expected module, found trait `Tr`
+   |        ^^ not a module
+
+error[E0578]: cannot find module `nonexistent` in the crate root
+  --> $DIR/resolve-bad-visibility.rs:17:8
+   |
+LL | pub(in nonexistent) struct G; //~ ERROR cannot find module `nonexistent` in the crate root
+   |        ^^^^^^^^^^^ not found in the crate root
+
+error[E0578]: cannot find module `too_soon` in the crate root
+  --> $DIR/resolve-bad-visibility.rs:18:8
+   |
+LL | pub(in too_soon) struct H; //~ ERROR cannot find module `too_soon` in the crate root
+   |        ^^^^^^^^ not found in the crate root
+
+error: aborting due to 5 previous errors
+
+Some errors occurred: E0577, E0578.
+For more information about an error, try `rustc --explain E0577`.