rust/tests/ui/parser/removed-syntax-static-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
206 B
Rust
Raw Normal View History

struct S;
impl S {
static fn f() {}
2020-02-14 18:50:26 -06:00
//~^ ERROR expected identifier, found keyword `fn`
//~| ERROR expected one of `:`, `;`, or `=`
//~| ERROR missing type for `static` item
}
fn main() {}