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