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