]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-or-init.stderr
633c4017d16ac1ef24375ee2d29d513030c5e1ff
[rust.git] / src / test / ui / borrowck / borrowck-or-init.stderr
1 error[E0381]: used binding `i` isn't initialized in all conditions
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 isn't initialized in all conditions
11    |
12    = note: this error originates in the macro `$crate::format_args_nl` (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`.