fork/rust

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

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

master
877 B29 linesraw
1error[E0603]: enum `Bar` is private
2  --> $DIR/struct-variant-privacy-xc.rs:4:33
3   |
4LL | fn f(b: struct_variant_privacy::Bar) {
5   |                                 ^^^ private enum
6   |
7note: the enum `Bar` is defined here
8  --> $DIR/auxiliary/struct_variant_privacy.rs:1:1
9   |
10LL | enum Bar {
11   | ^^^^^^^^
12
13error[E0603]: enum `Bar` is private
14  --> $DIR/struct-variant-privacy-xc.rs:7:33
15   |
16LL |         struct_variant_privacy::Bar::Baz { a: _a } => {}
17   |                                 ^^^  --- variant `Baz` is not publicly re-exported
18   |                                 |
19   |                                 private enum
20   |
21note: the enum `Bar` is defined here
22  --> $DIR/auxiliary/struct_variant_privacy.rs:1:1
23   |
24LL | enum Bar {
25   | ^^^^^^^^
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0603`.