rust/tests/ui/issues/issue-13407.stderr

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

25 lines
588 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0603]: unit struct `C` is private
2018-12-25 15:56:47 +00:00
--> $DIR/issue-13407.rs:6:8
2018-07-15 21:11:54 +00:00
|
LL | A::C = 1;
| ^ private unit struct
|
note: the unit struct `C` is defined here
--> $DIR/issue-13407.rs:2:5
|
LL | struct C;
| ^^^^^^^^^
2018-07-15 21:11:54 +00:00
2019-12-22 18:42:15 +00:00
error[E0070]: invalid left-hand side of assignment
--> $DIR/issue-13407.rs:6:10
2018-07-15 21:11:54 +00:00
|
LL | A::C = 1;
| ---- ^
2019-12-22 18:42:15 +00:00
| |
| cannot assign to this expression
2018-07-15 21:11:54 +00:00
error: aborting due to 2 previous errors
2018-07-15 21:11:54 +00:00
Some errors have detailed explanations: E0070, E0603.
2018-07-15 21:11:54 +00:00
For more information about an error, try `rustc --explain E0070`.