diff options
Diffstat (limited to 'tests/ui/parser/removed-syntax-fn-sigil.rs')
-rw-r--r-- | tests/ui/parser/removed-syntax-fn-sigil.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/parser/removed-syntax-fn-sigil.rs b/tests/ui/parser/removed-syntax-fn-sigil.rs index 725843429..d55a032d1 100644 --- a/tests/ui/parser/removed-syntax-fn-sigil.rs +++ b/tests/ui/parser/removed-syntax-fn-sigil.rs @@ -1,3 +1,4 @@ fn main() { - let x: fn~() = || (); //~ ERROR expected `(`, found `~` + let x: fn~() = || (); //~ ERROR missing parameters for function definition + //~| ERROR expected one of `->`, `;`, or `=`, found `~` } |