]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-bad-visibility.stderr
Change E0741 into E0742
[rust.git] / src / test / ui / resolve / resolve-bad-visibility.stderr
1 error[E0577]: expected module, found enum `E`
2   --> $DIR/resolve-bad-visibility.rs:4:8
3    |
4 LL | pub(in E) struct S;
5    |        ^ not a module
6
7 error[E0577]: expected module, found trait `Tr`
8   --> $DIR/resolve-bad-visibility.rs:5:8
9    |
10 LL | pub(in Tr) struct Z;
11    |        ^^ not a module
12
13 error[E0742]: visibilities can only be restricted to ancestor modules
14   --> $DIR/resolve-bad-visibility.rs:6:8
15    |
16 LL | pub(in std::vec) struct F;
17    |        ^^^^^^^^
18
19 error[E0433]: failed to resolve: maybe a missing crate `nonexistent`?
20   --> $DIR/resolve-bad-visibility.rs:7:8
21    |
22 LL | pub(in nonexistent) struct G;
23    |        ^^^^^^^^^^^ maybe a missing crate `nonexistent`?
24
25 error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
26   --> $DIR/resolve-bad-visibility.rs:8:8
27    |
28 LL | pub(in too_soon) struct H;
29    |        ^^^^^^^^ maybe a missing crate `too_soon`?
30
31 error: aborting due to 5 previous errors
32
33 Some errors have detailed explanations: E0433, E0742.
34 For more information about an error, try `rustc --explain E0433`.