]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-block-unint.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / borrowck / borrowck-block-unint.rs
1 fn force<F>(f: F) where F: FnOnce() { f(); }
2 fn main() {
3     let x: isize;
4     force(|| {  //~ ERROR E0381
5         println!("{}", x);
6     });
7 }