]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/unreachable-async-fn.rs
Do not trigger unreachable lint in async body and Use span labels
[rust.git] / src / test / ui / lint / unreachable-async-fn.rs
1 // run-pass
2 // edition:2018
3 #[allow(dead_code)]
4
5 async fn foo () { // unreachable lint doesn't trigger
6    unimplemented!()
7 }
8
9 fn main() {}