fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
696 B25 linesraw
1error: expected identifier, found keyword `fn`
2  --> $DIR/removed-syntax-static-fn.rs:4:12
3   |
4LL |     static fn f() {}
5   |            ^^ expected identifier, found keyword
6
7error: expected one of `:`, `;`, or `=`, found `f`
8  --> $DIR/removed-syntax-static-fn.rs:4:15
9   |
10LL | impl S {
11   |        - while parsing this item list starting here
12LL |     static fn f() {}
13   |               ^ expected one of `:`, `;`, or `=`
14...
15LL | }
16   | - the item list ends here
17
18error: missing type for `static` item
19  --> $DIR/removed-syntax-static-fn.rs:4:12
20   |
21LL |     static fn f() {}
22   |            ^^ help: provide a type for the item: `r#fn: <type>`
23
24error: aborting due to 3 previous errors
25