rust/src/test/ui/error-codes/E0451.stderr

16 lines
519 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0451]: field `b` of struct `Bar::Foo` is private
--> $DIR/E0451.rs:24:23
|
24 | let Bar::Foo{a:a, b:b} = foo; //~ ERROR E0451
| ^^^ field `b` is private
error[E0451]: field `b` of struct `Bar::Foo` is private
--> $DIR/E0451.rs:28:29
|
28 | let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
| ^^^^ field `b` is private
error: aborting due to 2 previous errors
2018-02-19 21:40:25 +01:00
If you want more information on this error, try using "rustc --explain E0451"