]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-static-fn.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / 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() {}