]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/resolve-bad-visibility.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / 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    = help: consider adding `extern crate nonexistent` to use the `nonexistent` crate
26
27 error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
28   --> $DIR/resolve-bad-visibility.rs:8:8
29    |
30 LL | pub(in too_soon) struct H;
31    |        ^^^^^^^^ maybe a missing crate `too_soon`?
32    |
33    = help: consider adding `extern crate too_soon` to use the `too_soon` crate
34
35 error: aborting due to 5 previous errors
36
37 Some errors have detailed explanations: E0433, E0577, E0742.
38 For more information about an error, try `rustc --explain E0433`.