blob: 0cdee1d51eaca41d41f4a0363b61b64de2967950 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
error: missing parameters for function definition
--> $DIR/removed-syntax-fn-sigil.rs:2:14
|
LL | let x: fn~() = || ();
| ^
|
help: add a parameter list
|
LL | let x: fn()~() = || ();
| ++
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
|