2018-08-08 12:28:26 +00:00
|
|
|
error[E0577]: expected module, found enum `E`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/resolve-bad-visibility.rs:4:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub(in E) struct S;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^ not a module
|
|
|
|
|
|
|
|
error[E0577]: expected module, found trait `Tr`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/resolve-bad-visibility.rs:5:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub(in Tr) struct Z;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^ not a module
|
|
|
|
|
2019-10-29 12:59:22 +00:00
|
|
|
error[E0742]: visibilities can only be restricted to ancestor modules
|
2019-08-05 18:18:50 +00:00
|
|
|
--> $DIR/resolve-bad-visibility.rs:6:8
|
|
|
|
|
|
|
|
|
LL | pub(in std::vec) struct F;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2019-08-09 22:40:05 +00:00
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `nonexistent`?
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/resolve-bad-visibility.rs:7:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub(in nonexistent) struct G;
|
2019-08-09 22:40:05 +00:00
|
|
|
| ^^^^^^^^^^^ maybe a missing crate `nonexistent`?
|
2022-05-22 02:48:35 +00:00
|
|
|
|
|
|
|
|
= help: consider adding `extern crate nonexistent` to use the `nonexistent` crate
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-08-09 22:40:05 +00:00
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/resolve-bad-visibility.rs:8:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub(in too_soon) struct H;
|
2019-08-09 22:40:05 +00:00
|
|
|
| ^^^^^^^^ maybe a missing crate `too_soon`?
|
2022-05-22 02:48:35 +00:00
|
|
|
|
|
|
|
|
= help: consider adding `extern crate too_soon` to use the `too_soon` crate
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2019-10-15 11:52:57 +00:00
|
|
|
Some errors have detailed explanations: E0433, E0577, E0742.
|
2019-10-14 12:07:05 +00:00
|
|
|
For more information about an error, try `rustc --explain E0433`.
|