fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
469 B15 linesraw
1error[E0451]: field `b` of struct `bar::Foo` is private
2  --> $DIR/E0451.rs:14:21
3   |
4LL |     let bar::Foo{a, b} = foo;
5   |                     ^ field `b` is private
6
7error[E0451]: field `b` of struct `bar::Foo` is private
8  --> $DIR/E0451.rs:18:29
9   |
10LL |     let f = bar::Foo{ a: 0, b: 0 };
11   |                             ^^^^ field `b` is private
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0451`.