]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-24267-flow-exit.stderr
Rollup merge of #102245 - ink-feather-org:const_cmp_by, r=fee1-dead
[rust.git] / src / test / ui / borrowck / issue-24267-flow-exit.stderr
1 error[E0381]: used binding `x` isn't initialized
2   --> $DIR/issue-24267-flow-exit.rs:12:20
3    |
4 LL |     let x: i32;
5    |         - binding declared here but left uninitialized
6 LL |     loop { x = break; }
7 LL |     println!("{}", x);
8    |                    ^ `x` used here but it isn't initialized
9    |
10    = 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)
11
12 error[E0381]: used binding `x` isn't initialized
13   --> $DIR/issue-24267-flow-exit.rs:18:20
14    |
15 LL |     let x: i32;
16    |         - binding declared here but left uninitialized
17 LL |     for _ in 0..10 { x = continue; }
18 LL |     println!("{}", x);
19    |                    ^ `x` used here but it isn't initialized
20    |
21    = 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)
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0381`.