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