error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `static` | |
--> $DIR/removed-syntax-static-fn.rs:4:5 | |
| | |
LL | impl S { | |
| - expected one of 10 possible tokens here | |
LL | static fn f() {} | |
| ^^^^^^ unexpected token | |
error: aborting due to previous error | |