rust/tests/ui/parser/default-unmatched-assoc.rs

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

17 lines
394 B
Rust
Raw Normal View History

fn main() {}
trait Foo {
default!(); //~ ERROR cannot find macro `default` in this scope
default do
2020-02-23 11:54:00 +00:00
//~^ ERROR `default` is not followed by an item
//~| ERROR non-item in item list
}
struct S;
impl S {
default!(); //~ ERROR cannot find macro `default` in this scope
default do
2020-02-23 11:54:00 +00:00
//~^ ERROR `default` is not followed by an item
//~| ERROR non-item in item list
}