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
|
|
|
|
2023-12-08 19:54:46 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-13407.rs:6:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2023-12-08 19:54:46 +00:00
|
|
|
LL | struct C;
|
|
|
|
| -------- unit struct defined here
|
|
|
|
...
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | A::C = 1;
|
2023-12-08 19:54:46 +00:00
|
|
|
| ^^^^ - this expression has type `{integer}`
|
2019-12-22 18:42:15 +00:00
|
|
|
| |
|
2023-12-08 19:54:46 +00:00
|
|
|
| expected integer, found `C`
|
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
|
|
|
|
2023-12-08 19:54:46 +00:00
|
|
|
Some errors have detailed explanations: E0308, E0603.
|
|
|
|
For more information about an error, try `rustc --explain E0308`.
|