1 error: visibilities can only be restricted to ancestor modules
2 --> $DIR/resolve-bad-visibility.rs:6:8
4 LL | pub(in std::vec) struct F;
7 error[E0577]: expected module, found enum `E`
8 --> $DIR/resolve-bad-visibility.rs:4:8
10 LL | pub(in E) struct S;
13 error[E0577]: expected module, found trait `Tr`
14 --> $DIR/resolve-bad-visibility.rs:5:8
16 LL | pub(in Tr) struct Z;
19 error[E0578]: cannot find module `nonexistent` in the crate root
20 --> $DIR/resolve-bad-visibility.rs:7:8
22 LL | pub(in nonexistent) struct G;
23 | ^^^^^^^^^^^ not found in the crate root
25 error[E0578]: cannot find module `too_soon` in the crate root
26 --> $DIR/resolve-bad-visibility.rs:8:8
28 LL | pub(in too_soon) struct H;
29 | ^^^^^^^^ not found in the crate root
31 error: aborting due to 5 previous errors