rust/tests/ui/static/static-closures.rs
2023-01-11 09:32:08 +00:00

5 lines
73 B
Rust

fn main() {
static || {};
//~^ ERROR closures cannot be static
}