about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/tainted-body.rs
blob: 118c08874699f3cee2d8c725646779a0ad1887e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ edition:2021

// Don't ICE in ByMove shim builder when MIR body is tainted by writeback errors

fn main() {
    let _ = async || {
        used_fn();
        //~^ ERROR cannot find function `used_fn` in this scope
        0
    };
}