]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/issue-33504.rs:7:13 |
8faf50e0 | 3 | | |
74b04a01 | 4 | LL | struct Test; |
064997fb | 5 | | ----------- unit struct defined here |
74b04a01 | 6 | ... |
532ac7d7 | 7 | LL | let Test = 1; |
5e7ed085 | 8 | | ^^^^ - this expression has type `{integer}` |
74b04a01 XL |
9 | | | |
10 | | expected integer, found struct `Test` | |
11 | | `Test` is interpreted as a unit struct, not a new binding | |
12 | | help: introduce a new binding instead: `other_test` | |
8faf50e0 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0308`. |