fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
770 B27 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   |                                 ^^^ this enum is private
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:6:33
15   |
16LL |         struct_variant_privacy::Bar::Baz { a: _a } => {}
17   |                                 ^^^ this enum is private
18   |
19note: the enum `Bar` is defined here
20  --> $DIR/auxiliary/struct_variant_privacy.rs:1:1
21   |
22LL | enum Bar {
23   | ^^^^^^^^
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0603`.