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

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

26 lines
693 B
Plaintext
Raw Normal View History

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