]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-break-uninit.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / borrowck / borrowck-break-uninit.stderr
1 error[E0381]: used binding `x` isn't initialized
2   --> $DIR/borrowck-break-uninit.rs:9:20
3    |
4 LL |     let x: isize;
5    |         - binding declared here but left uninitialized
6 ...
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 help: consider assigning a value
12    |
13 LL |     let x: isize = 0;
14    |                  +++
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0381`.