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