fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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