Files
rust/tests/ui/coroutine/static-closure-unexpanded.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
227 B
Rust
Raw Normal View History

// Tests that static closures are not stable in the parser grammar unless the
// coroutine feature is enabled.
#[cfg(any())]
fn foo() {
let _ = static || {};
//~^ ERROR coroutine syntax is experimental
}
fn main() {}