]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-bad-visibility.stderr
Auto merge of #59627 - LooMaclin:issue_57128_improve_miri_error_reporting_in_check_in...
[rust.git] / src / test / ui / resolve / resolve-bad-visibility.stderr
1 error: visibilities can only be restricted to ancestor modules
2   --> $DIR/resolve-bad-visibility.rs:6:8
3    |
4 LL | pub(in std::vec) struct F;
5    |        ^^^^^^^^
6
7 error[E0577]: expected module, found enum `E`
8   --> $DIR/resolve-bad-visibility.rs:4:8
9    |
10 LL | pub(in E) struct S;
11    |        ^ not a module
12
13 error[E0577]: expected module, found trait `Tr`
14   --> $DIR/resolve-bad-visibility.rs:5:8
15    |
16 LL | pub(in Tr) struct Z;
17    |        ^^ not a module
18
19 error[E0578]: cannot find module `nonexistent` in the crate root
20   --> $DIR/resolve-bad-visibility.rs:7:8
21    |
22 LL | pub(in nonexistent) struct G;
23    |        ^^^^^^^^^^^ not found in the crate root
24
25 error[E0578]: cannot find module `too_soon` in the crate root
26   --> $DIR/resolve-bad-visibility.rs:8:8
27    |
28 LL | pub(in too_soon) struct H;
29    |        ^^^^^^^^ not found in the crate root
30
31 error: aborting due to 5 previous errors
32