rust/tests/ui/parser/removed-syntax/removed-syntax-fn-sigil.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
530 B
Plaintext
Raw Normal View History

error: missing parameters for function definition
--> $DIR/removed-syntax-fn-sigil.rs:2:14
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | let x: fn~() = || ();
| ^
|
help: add a parameter list
|
LL | let x: fn()~() = || ();
| ++
2018-10-20 20:36:17 +00:00
error: expected one of `->`, `;`, or `=`, found `~`
--> $DIR/removed-syntax-fn-sigil.rs:2:14
|
LL | let x: fn~() = || ();
| - ^ expected one of `->`, `;`, or `=`
| |
| while parsing the type for `x`
error: aborting due to 2 previous errors
2018-10-20 20:36:17 +00:00