]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/default-unmatched-assoc.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / parser / default-unmatched-assoc.rs
1 fn main() {}
2
3 trait Foo {
4     default!(); //~ ERROR cannot find macro `default` in this scope
5     default do
6     //~^ ERROR `default` is not followed by an item
7     //~| ERROR non-item in item list
8 }
9
10 struct S;
11 impl S {
12     default!(); //~ ERROR cannot find macro `default` in this scope
13     default do
14     //~^ ERROR `default` is not followed by an item
15     //~| ERROR non-item in item list
16 }