fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
507 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   |             ^^^^
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`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0308`.