fork/rust

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

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

master
521 B13 linesraw
1error[E0381]: used binding `x` is possibly-uninitialized
2  --> $DIR/borrowck-while.rs:4:12
3   |
4LL |     let mut x: isize;
5   |         ----- binding declared here but left uninitialized
6LL |     while 1 == 1 { x = 10; }
7   |           ------ if this condition isn't met and the `while` loop runs 0 times, `x` is not initialized
8LL |     return x;
9   |            ^ `x` used here but it is possibly-uninitialized
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0381`.