rust/tests/ui/async-await/async-closures/tainted-body.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
264 B
Rust
Raw Normal View History

// edition:2021
#![feature(async_closure)]
// 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
};
}