fork/rust

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

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

master
544 B17 linesraw
1error[E0308]: mismatched types
2  --> $DIR/loop-properly-diverging-2.rs:2:23
3   |
4LL |   let x: i32 = loop { break };
5   |       -        ----   ^^^^^ expected `i32`, found `()`
6   |       |        |
7   |       |        this loop is expected to be of type `i32`
8   |       expected because of this assignment
9   |
10help: give it a value of the expected type
11   |
12LL |   let x: i32 = loop { break 42 };
13   |                             ++
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.