Test that async/await compiles with #![no_std]
This commit is contained in:
parent
dfcfa170f5
commit
f79a95a65d
1 changed files with 13 additions and 0 deletions
13
src/test/ui/async-await/no-std.rs
Normal file
13
src/test/ui/async-await/no-std.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// edition:2018
|
||||
// check-pass
|
||||
|
||||
#![no_std]
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
use core::future::Future;
|
||||
|
||||
async fn a(f: impl Future) {
|
||||
f.await;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue