Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
const-suggest-feature.rs
blob: dbb166dd6c5d2f8f7d73f7e29086344f4f732000 [
file
] [
log
] [
blame
]
//@ 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
()
{}