os-rust/tests/ui/parser/removed-syntax-fn-sigil.rs

4 lines
153 B
Rust

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