]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-static-fn.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / removed-syntax-static-fn.stderr
1 error: expected identifier, found keyword `fn`
2   --> $DIR/removed-syntax-static-fn.rs:4:12
3    |
4 LL |     static fn f() {}
5    |            ^^ expected identifier, found keyword
6
7 error: expected one of `:`, `;`, or `=`, found `f`
8   --> $DIR/removed-syntax-static-fn.rs:4:15
9    |
10 LL | impl S {
11    |        - while parsing this item list starting here
12 LL |     static fn f() {}
13    |               ^ expected one of `:`, `;`, or `=`
14 ...
15 LL | }
16    | - the item list ends here
17
18 error: missing type for `static` item
19   --> $DIR/removed-syntax-static-fn.rs:4:12
20    |
21 LL |     static fn f() {}
22    |            ^^ help: provide a type for the item: `r#fn: <type>`
23
24 error: aborting due to 3 previous errors
25