fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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`.