Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
coroutine
/
static-closure-unexpanded.rs
blob: ac7c251c8348371fe0556d5ae32e20445c175dd2 [
file
]
// Tests that static closures are not stable in the parser grammar unless the
// coroutine feature is enabled.
#[
cfg
(
false
)]
fn
foo
()
{
let
_
=
static
||
{};
//~^ ERROR coroutine syntax is experimental
}
fn
main
()
{}