]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-if-no-else.stderr
Review comments: wording
[rust.git] / src / test / ui / borrowck / borrowck-if-no-else.stderr
1 error[E0381]: used binding `x` is possibly-uninitialized
2   --> $DIR/borrowck-if-no-else.rs:5:9
3    |
4 LL |     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
9 LL |     foo(x);
10    |         ^ `x` used here but it is possibly-uninitialized
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0381`.