]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-block-unint.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / borrowck-block-unint.nll.stderr
1 error[E0381]: borrow of possibly uninitialized variable: `x`
2   --> $DIR/borrowck-block-unint.rs:14:11
3    |
4 LL |     force(|| {  //~ ERROR capture of possibly uninitialized variable: `x`
5    |           ^^ use of possibly uninitialized `x`
6 LL |         println!("{}", x);
7    |                        - borrow occurs due to use in closure
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0381`.