]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/default-unmatched-assoc.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / 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 }