rust/tests/ui/lint/unreachable-async-fn.rs

10 lines
143 B
Rust

//@ check-pass
//@ edition:2018
#[allow(dead_code)]
async fn foo () { // unreachable lint doesn't trigger
unimplemented!()
}
fn main() {}