]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-while-break.stderr
Review comments: wording
[rust.git] / src / test / ui / borrowck / borrowck-while-break.stderr
1 error[E0381]: used binding `v` is possibly-uninitialized
2   --> $DIR/borrowck-while-break.rs:7:20
3    |
4 LL |     let v;
5    |         - binding declared here but left uninitialized
6 LL |     while cond {
7    |           ---- if this condition isn't met and the `while` loop runs 0 times, `v` is not initialized
8 ...
9 LL |     println!("{}", v);
10    |                    ^ `v` used here but it is possibly-uninitialized
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`.