@@ -22,6 +22,8 @@ mod free_items {
22
22
default impl foo { }
23
23
default !( ) ;
24
24
default :: foo:: bar!( ) ;
25
+ default default !( ) ; //~ ERROR item cannot be `default`
26
+ default default :: foo:: bar!( ) ; //~ ERROR item cannot be `default`
25
27
default macro foo { } //~ ERROR item cannot be `default`
26
28
default macro_rules! foo { } //~ ERROR item cannot be `default`
27
29
}
@@ -55,6 +57,8 @@ extern "C" {
55
57
//~^ ERROR item kind not supported in `extern` block
56
58
default !( ) ;
57
59
default :: foo:: bar!( ) ;
60
+ default default !( ) ; //~ ERROR item cannot be `default`
61
+ default default :: foo:: bar!( ) ; //~ ERROR item cannot be `default`
58
62
default macro foo { } //~ ERROR item cannot be `default`
59
63
//~^ ERROR item kind not supported in `extern` block
60
64
default macro_rules! foo { } //~ ERROR item cannot be `default`
@@ -90,6 +94,8 @@ impl S {
90
94
//~^ ERROR item kind not supported in `trait` or `impl`
91
95
default !( ) ;
92
96
default :: foo:: bar!( ) ;
97
+ default default !( ) ;
98
+ default default :: foo:: bar!( ) ;
93
99
default macro foo { }
94
100
//~^ ERROR item kind not supported in `trait` or `impl`
95
101
default macro_rules! foo { }
@@ -125,6 +131,8 @@ trait T {
125
131
//~^ ERROR item kind not supported in `trait` or `impl`
126
132
default !( ) ;
127
133
default :: foo:: bar!( ) ;
134
+ default default !( ) ;
135
+ default default :: foo:: bar!( ) ;
128
136
default macro foo { }
129
137
//~^ ERROR item kind not supported in `trait` or `impl`
130
138
default macro_rules! foo { }
0 commit comments