]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-block-unint.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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 }