]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-if-with-else.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-if-with-else.stderr
1 error[E0381]: used binding `x` is possibly-uninitialized
2 --> $DIR/borrowck-if-with-else.rs:10:9
3 |
4 LL | let x: isize;
5 | - binding declared here but left uninitialized
6 LL | if 1 > 2 {
7 | ----- if this condition is `true`, `x` is not initialized
8 ...
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`.