fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
472 B15 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   |                                 ^^^
6
7error[E0603]: enum `Bar` is private
8  --> $DIR/struct-variant-privacy-xc.rs:6:33
9   |
10LL |         struct_variant_privacy::Bar::Baz { a: _a } => {}
11   |                                 ^^^
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0603`.