diff options
Diffstat (limited to 'tests/ui/async-await/no-std.rs')
-rw-r--r-- | tests/ui/async-await/no-std.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/async-await/no-std.rs b/tests/ui/async-await/no-std.rs new file mode 100644 index 000000000..63e93cdff --- /dev/null +++ b/tests/ui/async-await/no-std.rs @@ -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() {} |