2018-02-07 21:35:35 -06:00
|
|
|
error[E0451]: field `b` of struct `Bar::Foo` is private
|
|
|
|
--> $DIR/E0451.rs:24:23
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let Bar::Foo{a:a, b:b} = foo; //~ ERROR E0451
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^ field `b` is private
|
|
|
|
|
|
|
|
error[E0451]: field `b` of struct `Bar::Foo` is private
|
|
|
|
--> $DIR/E0451.rs:28:29
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^ field `b` is private
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0451`.
|