blob: 7cf24774deda0d01c17ed475bd97695f44f146ff (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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() {}
|