]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-block/try-block-opt-init.stderr
Review comments: wording
[rust.git] / src / test / ui / try-block / try-block-opt-init.stderr
1 error[E0381]: used binding `cfg_res` is possibly-uninitialized
2   --> $DIR/try-block-opt-init.rs:15:5
3    |
4 LL |     let cfg_res;
5    |         ------- binding declared here but left uninitialized
6 ...
7 LL |         cfg_res = 5;
8    |         ----------- binding initialized here in some conditions
9 ...
10 LL |     assert_eq!(cfg_res, 5);
11    |     ^^^^^^^^^^^^^^^^^^^^^^ `cfg_res` used here but it is possibly-uninitialized
12    |
13    = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0381`.