1 error[E0577]: expected module, found enum `E`
2 --> $DIR/resolve-bad-visibility.rs:4:8
4 LL | pub(in E) struct S;
7 error[E0577]: expected module, found trait `Tr`
8 --> $DIR/resolve-bad-visibility.rs:5:8
10 LL | pub(in Tr) struct Z;
13 error[E0742]: visibilities can only be restricted to ancestor modules
14 --> $DIR/resolve-bad-visibility.rs:6:8
16 LL | pub(in std::vec) struct F;
19 error[E0433]: failed to resolve: maybe a missing crate `nonexistent`?
20 --> $DIR/resolve-bad-visibility.rs:7:8
22 LL | pub(in nonexistent) struct G;
23 | ^^^^^^^^^^^ maybe a missing crate `nonexistent`?
25 = help: consider adding `extern crate nonexistent` to use the `nonexistent` crate
27 error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
28 --> $DIR/resolve-bad-visibility.rs:8:8
30 LL | pub(in too_soon) struct H;
31 | ^^^^^^^^ maybe a missing crate `too_soon`?
33 = help: consider adding `extern crate too_soon` to use the `too_soon` crate
35 error: aborting due to 5 previous errors
37 Some errors have detailed explanations: E0433, E0577, E0742.
38 For more information about an error, try `rustc --explain E0433`.