1
Fork 0
rust/src/test/ui/parser/removed-syntax-static-fn.stderr

21 lines
583 B
Text
Raw Normal View History

2020-02-15 01:50:26 +01:00
error: expected identifier, found keyword `fn`
--> $DIR/removed-syntax-static-fn.rs:4:12
2018-10-20 23:36:17 +03:00
|
2020-02-15 01:50:26 +01:00
LL | static fn f() {}
| ^^ expected identifier, found keyword
2018-10-20 23:36:17 +03:00
2020-02-15 01:50:26 +01:00
error: expected one of `:`, `;`, or `=`, found `f`
--> $DIR/removed-syntax-static-fn.rs:4:15
|
LL | static fn f() {}
| ^ expected one of `:`, `;`, or `=`
error: missing type for `static` item
--> $DIR/removed-syntax-static-fn.rs:4:12
|
LL | static fn f() {}
| ^^ help: provide a type for the item: `r#fn: <type>`
error: aborting due to 3 previous errors
2018-10-20 23:36:17 +03:00