rustc/tests/ui/parser/removed-syntax-fn-sigil.rs
2024-06-04 21:09:03 +02:00

5 lines
153 B
Rust

fn main() {
let x: fn~() = || (); //~ ERROR missing parameters for function definition
//~| ERROR expected one of `->`, `;`, or `=`, found `~`
}