rust/tests/ui/mir/build-async-error-body-correctly.rs
2024-02-16 20:02:50 +00:00

9 lines
154 B
Rust

//@ edition: 2021
async fn asyncfn() {
let binding = match true {};
//~^ ERROR non-exhaustive patterns: type `bool` is non-empty
}
fn main() {}