rust/tests/ui/async-await/async-closures/tainted-body.rs
2024-12-13 00:04:56 +00:00

12 lines
237 B
Rust

//@ 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
};
}