]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-or-init.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / borrowck / borrowck-or-init.stderr
1 error[E0381]: used binding `i` is possibly-uninitialized
2 --> $DIR/borrowck-or-init.rs:5:20
3 |
4 LL | let i: isize;
5 | - binding declared here but left uninitialized
6 LL |
7 LL | println!("{}", false || { i = 5; true });
8 | ----- binding initialized here in some conditions
9 LL | println!("{}", i);
10 | ^ `i` used here but it is possibly-uninitialized
11 |
12 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0381`.