]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-or-init.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / 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`.