LL | struct C;
| ^^^^^^^^^
-error[E0308]: mismatched types
- --> $DIR/issue-13407.rs:6:12
- |
-LL | A::C = 1;
- | ^ expected struct `A::C`, found integer
-
error[E0070]: invalid left-hand side of assignment
--> $DIR/issue-13407.rs:6:10
|
| |
| cannot assign to this expression
+error[E0308]: mismatched types
+ --> $DIR/issue-13407.rs:6:12
+ |
+LL | A::C = 1;
+ | ^ expected struct `C`, found integer
+
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0070, E0308, E0603.