rust/tests/ui/structs/default-field-values/visibility.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
928 B
Plaintext
Raw Normal View History

error[E0451]: field `x` of struct `S` is private
--> $DIR/visibility.rs:24:9
|
LL | let a = baz::S {
| ------ in this type
LL | ..
| ^^ field `x` is private
error[E0451]: field `x` of struct `S` is private
--> $DIR/visibility.rs:27:9
|
LL | let b = baz::S {
| ------ in this type
LL | x: 0,
| ^^^^ private field
error[E0451]: field `beta` of struct `Alpha` is private
--> $DIR/visibility.rs:11:37
|
LL | let x = crate::foo::Alpha { .. };
| ^^ field `beta` is private
error[E0451]: field `gamma` of struct `Alpha` is private
--> $DIR/visibility.rs:11:37
|
LL | let x = crate::foo::Alpha { .. };
| ^^ field `gamma` is private
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0451`.