]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/unreachable-lint.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / unreachable-lint.rs
1 // check-pass
2 // edition:2018
3 #![deny(unreachable_code)]
4
5 async fn foo() {
6     endless().await;
7 }
8
9 async fn endless() -> ! {
10     loop {}
11 }
12
13 fn main() { }