]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/removed-syntax-static-fn.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / removed-syntax-static-fn.rs
1 struct S;
2
3 impl S {
4     static fn f() {}
5     //~^ ERROR expected identifier, found keyword `fn`
6     //~| ERROR expected one of `:`, `;`, or `=`
7     //~| ERROR missing type for `static` item
8 }
9
10 fn main() {}