fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB38 linesraw
1error[E0577]: expected module, found enum `E`
2  --> $DIR/resolve-bad-visibility.rs:4:8
3   |
4LL | pub(in E) struct S;
5   |        ^ not a module
6
7error[E0577]: expected module, found trait `Tr`
8  --> $DIR/resolve-bad-visibility.rs:5:8
9   |
10LL | pub(in Tr) struct Z;
11   |        ^^ not a module
12
13error[E0742]: visibilities can only be restricted to ancestor modules
14  --> $DIR/resolve-bad-visibility.rs:6:8
15   |
16LL | pub(in std::vec) struct F;
17   |        ^^^^^^^^
18
19error[E0433]: failed to resolve: maybe a missing crate `nonexistent`?
20  --> $DIR/resolve-bad-visibility.rs:7:8
21   |
22LL | 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
27error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
28  --> $DIR/resolve-bad-visibility.rs:8:8
29   |
30LL | 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
35error: aborting due to 5 previous errors
36
37Some errors have detailed explanations: E0433, E0577, E0742.
38For more information about an error, try `rustc --explain E0433`.