about summary refs log tree commit diff
path: root/tests/ui/consts/const-suggest-feature.rs
blob: dbb166dd6c5d2f8f7d73f7e29086344f4f732000 (plain)
1
2
3
4
5
6
7
8
9
10
//@ edition: 2018
use std::cell::Cell;

const WRITE: () = unsafe {
    let x = async { 13 };
    //~^ ERROR `async` blocks
    //~| HELP add `#![feature(const_async_blocks)]` to the crate attributes to enable
};

fn main() {}