summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-block-unint.rs
blob: 8d13b25a357560f14e1f9943a41a9b9b6787d28e (plain)
1
2
3
4
5
6
7
fn force<F>(f: F) where F: FnOnce() { f(); }
fn main() {
    let x: isize;
    force(|| {  //~ ERROR E0381
        println!("{}", x);
    });
}