]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0451.stderr
Auto merge of #47956 - retep998:is-nibbles, r=BurntSushi
[rust.git] / src / test / ui / error-codes / E0451.stderr
1 error[E0451]: field `b` of struct `Bar::Foo` is private
2   --> $DIR/E0451.rs:24:23
3    |
4 24 |     let Bar::Foo{a:a, b:b} = foo; //~ ERROR E0451
5    |                       ^^^ field `b` is private
6
7 error[E0451]: field `b` of struct `Bar::Foo` is private
8   --> $DIR/E0451.rs:28:29
9    |
10 28 |     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
11    |                             ^^^^ field `b` is private
12
13 error: aborting due to 2 previous errors
14