rust/src/test/ui/issues/issue-13407.stderr

26 lines
646 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0603]: unit struct `C` is private
--> $DIR/issue-13407.rs:16:8
2018-07-15 16:11:54 -05:00
|
LL | A::C = 1;
| ^
2018-07-15 16:11:54 -05:00
error[E0308]: mismatched types
--> $DIR/issue-13407.rs:16:12
|
LL | A::C = 1;
| ^ expected struct `A::C`, found integral variable
|
= note: expected type `A::C`
found type `{integer}`
error[E0070]: invalid left-hand side expression
--> $DIR/issue-13407.rs:16:5
|
LL | A::C = 1;
| ^^^^^^^^ left-hand of expression not valid
error: aborting due to 3 previous errors
Some errors occurred: E0070, E0308, E0603.
For more information about an error, try `rustc --explain E0070`.