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