fork/rust

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

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

master
600 B14 linesraw
1error[E0381]: used binding `x` is possibly-uninitialized
2  --> $DIR/borrowck-if-no-else.rs:5:9
3   |
4LL |     let x: isize; if 1 > 2 { x = 10; }
5   |         -            -----            - an `else` arm might be missing here, initializing `x`
6   |         |            |
7   |         |            if this `if` condition is `false`, `x` is not initialized
8   |         binding declared here but left uninitialized
9LL |     foo(x);
10   |         ^ `x` used here but it is possibly-uninitialized
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0381`.