mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 06:35:27 +00:00
Test that async/await compiles with #![no_std]
This commit is contained in:
parent
dfcfa170f5
commit
f79a95a65d
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…
Reference in New Issue
Block a user