rust/src/test/ui/parser/default-unmatched-assoc.rs

17 lines
388 B
Rust
Raw Normal View History

fn main() {}
trait Foo {
default!(); //~ ERROR cannot find macro `default` in this scope
default do
2020-02-23 04:49:26 +01:00
//~^ ERROR `default` 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 04:49:26 +01:00
//~^ ERROR `default` not followed by an item
//~| ERROR non-item in item list
}