Files
rust/tests/ui/consts/const-suggest-feature.rs

11 lines
226 B
Rust
Raw Normal View History

//@ edition: 2018
2024-08-17 14:19:34 +02:00
use std::cell::Cell;
const WRITE: () = unsafe {
2024-08-26 14:51:16 +02:00
let x = async { 13 };
//~^ ERROR `async` blocks
//~| HELP add `#![feature(const_async_blocks)]` to the crate attributes to enable
};
fn main() {}