Skip to content

Commit f79a95a

Browse files
Test that async/await compiles with #![no_std]
1 parent dfcfa17 commit f79a95a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/ui/async-await/no-std.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// edition:2018
2+
// check-pass
3+
4+
#![no_std]
5+
#![crate_type = "rlib"]
6+
7+
use core::future::Future;
8+
9+
async fn a(f: impl Future) {
10+
f.await;
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)