]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0451.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0451.stderr
1 error[E0451]: field `b` of struct `Foo` is private
2   --> $DIR/E0451.rs:14:21
3    |
4 LL |     let bar::Foo{a, b} = foo;
5    |                     ^ private field
6
7 error[E0451]: field `b` of struct `Foo` is private
8   --> $DIR/E0451.rs:18:29
9    |
10 LL |     let f = bar::Foo{ a: 0, b: 0 };
11    |                             ^^^^ private field
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0451`.