2020-02-15 00:50:26 +00:00
|
|
|
error: expected identifier, found keyword `fn`
|
|
|
|
--> $DIR/removed-syntax-static-fn.rs:4:12
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
2020-02-15 00:50:26 +00:00
|
|
|
LL | static fn f() {}
|
|
|
|
| ^^ expected identifier, found keyword
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2020-02-15 00:50:26 +00:00
|
|
|
error: expected one of `:`, `;`, or `=`, found `f`
|
|
|
|
--> $DIR/removed-syntax-static-fn.rs:4:15
|
|
|
|
|
|
2020-02-22 07:16:39 +00:00
|
|
|
LL | impl S {
|
|
|
|
| - while parsing this item list starting here
|
2020-02-15 00:50:26 +00:00
|
|
|
LL | static fn f() {}
|
|
|
|
| ^ expected one of `:`, `;`, or `=`
|
2020-02-22 07:16:39 +00:00
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - the item list ends here
|
2020-02-15 00:50:26 +00:00
|
|
|
|
|
|
|
error: missing type for `static` item
|
2022-08-05 11:41:42 +00:00
|
|
|
--> $DIR/removed-syntax-static-fn.rs:4:14
|
2020-02-15 00:50:26 +00:00
|
|
|
|
|
|
|
|
LL | static fn f() {}
|
2022-08-05 11:41:42 +00:00
|
|
|
| ^ help: provide a type for the item: `: <type>`
|
2020-02-15 00:50:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 20:36:17 +00:00
|
|
|
|