summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/removed-syntax-fn-sigil.rs
blob: d55a032d1f278ece9904fe12b111c5bb7b9c1dd7 (plain)
1
2
3
4
fn main() {
    let x: fn~() = || (); //~ ERROR missing parameters for function definition
    //~| ERROR expected one of `->`, `;`, or `=`, found `~`
}