mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00
11 lines
227 B
Rust
11 lines
227 B
Rust
// 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() {}
|