rust/src/test/ui/parser/removed-syntax-static-fn.rs

10 lines
196 B
Rust

// ignore-tidy-linelength
struct S;
impl S {
static fn f() {}
}
//~^^ ERROR expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`,
fn main() {}