rust/src/test/ui/resolve/resolve-bad-visibility.stderr

33 lines
888 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: visibilities can only be restricted to ancestor modules
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-bad-visibility.rs:6:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub(in std::vec) struct F;
2018-08-08 07:28:26 -05:00
| ^^^^^^^^
error[E0577]: expected module, found enum `E`
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-bad-visibility.rs:4:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub(in E) struct S;
2018-08-08 07:28:26 -05:00
| ^ not a module
error[E0577]: expected module, found trait `Tr`
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-bad-visibility.rs:5:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub(in Tr) struct Z;
2018-08-08 07:28:26 -05:00
| ^^ not a module
error[E0578]: cannot find module `nonexistent` in the crate root
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-bad-visibility.rs:7:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub(in nonexistent) struct G;
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^ not found in the crate root
error[E0578]: cannot find module `too_soon` in the crate root
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-bad-visibility.rs:8:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub(in too_soon) struct H;
2018-08-08 07:28:26 -05:00
| ^^^^^^^^ not found in the crate root
error: aborting due to 5 previous errors