Sign in
rust
/
rust
/
6ea369cfee9420f6fe3f89e4bff7b01ac0ef920d
/
.
/
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
()
{}