Sign in
rust
/
rust
/
244fc326f23b58bc9db6bd985c59b80098ff14c1
/
.
/
tests
/
ui
/
coroutine
/
static-closure-unexpanded.rs
blob: ac7c251c8348371fe0556d5ae32e20445c175dd2 [
file
] [
log
] [
blame
]
// 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
()
{}