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;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^ private unit struct
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
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
|
2019-12-22 21:08:53 +00:00
|
|
|
--> $DIR/issue-13407.rs:6:10
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | A::C = 1;
|
2019-12-22 21:08:53 +00:00
|
|
|
| ---- ^
|
2019-12-22 18:42:15 +00:00
|
|
|
| |
|
|
|
|
| cannot assign to this expression
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2021-05-07 02:09:35 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2021-05-07 02:09:35 +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`.
|