fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
724 B16 linesraw
1error[E0381]: used binding `i` is possibly-uninitialized
2  --> $DIR/borrowck-or-init.rs:5:20
3   |
4LL |     let i: isize;
5   |         - binding declared here but left uninitialized
6LL |
7LL |     println!("{}", false || { i = 5; true });
8   |                               ----- binding initialized here in some conditions
9LL |     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
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0381`.