@@ -31,110 +31,110 @@ mod free_items {
31
31
#[ cfg( FALSE ) ]
32
32
extern "C" {
33
33
default extern crate foo; //~ ERROR an extern crate cannot be `default`
34
- //~^ ERROR extern crate not supported in `extern` block
34
+ //~^ ERROR extern crate is not supported in `extern` blocks
35
35
default use foo; //~ ERROR a `use` import cannot be `default`
36
- //~^ ERROR `use` import not supported in `extern` block
36
+ //~^ ERROR `use` import is not supported in `extern` blocks
37
37
default static foo: u8 ; //~ ERROR a static item cannot be `default`
38
38
default const foo: u8 ;
39
39
//~^ ERROR extern items cannot be `const`
40
40
default fn foo ( ) ;
41
41
default mod foo { } //~ ERROR a module cannot be `default`
42
- //~^ ERROR module not supported in `extern` block
42
+ //~^ ERROR module is not supported in `extern` blocks
43
43
default extern "C" { } //~ ERROR an extern block cannot be `default`
44
- //~^ ERROR extern block not supported in `extern` block
44
+ //~^ ERROR extern block is not supported in `extern` blocks
45
45
default type foo = u8 ;
46
46
default enum foo { } //~ ERROR an enum cannot be `default`
47
- //~^ ERROR enum not supported in `extern` block
47
+ //~^ ERROR enum is not supported in `extern` blocks
48
48
default struct foo { } //~ ERROR a struct cannot be `default`
49
- //~^ ERROR struct not supported in `extern` block
49
+ //~^ ERROR struct is not supported in `extern` blocks
50
50
default union foo { } //~ ERROR a union cannot be `default`
51
- //~^ ERROR union not supported in `extern` block
51
+ //~^ ERROR union is not supported in `extern` blocks
52
52
default trait foo { } //~ ERROR a trait cannot be `default`
53
- //~^ ERROR trait not supported in `extern` block
53
+ //~^ ERROR trait is not supported in `extern` blocks
54
54
default trait foo = Ord ; //~ ERROR a trait alias cannot be `default`
55
- //~^ ERROR trait alias not supported in `extern` block
55
+ //~^ ERROR trait alias is not supported in `extern` blocks
56
56
default impl foo { }
57
- //~^ ERROR implementation not supported in `extern` block
57
+ //~^ ERROR implementation is not supported in `extern` blocks
58
58
default !( ) ;
59
59
default :: foo:: bar!( ) ;
60
60
default default !( ) ; //~ ERROR an item macro invocation cannot be `default`
61
61
default default :: foo:: bar!( ) ; //~ ERROR an item macro invocation cannot be `default`
62
62
default macro foo { } //~ ERROR a macro definition cannot be `default`
63
- //~^ ERROR macro definition not supported in `extern` block
63
+ //~^ ERROR macro definition is not supported in `extern` blocks
64
64
default macro_rules! foo { } //~ ERROR a macro definition cannot be `default`
65
- //~^ ERROR macro definition not supported in `extern` block
65
+ //~^ ERROR macro definition is not supported in `extern` blocks
66
66
}
67
67
68
68
#[ cfg( FALSE ) ]
69
69
impl S {
70
70
default extern crate foo; //~ ERROR an extern crate cannot be `default`
71
- //~^ ERROR extern crate not supported in `trait` or `impl`
71
+ //~^ ERROR extern crate is not supported in `trait`s or `impl`s
72
72
default use foo; //~ ERROR a `use` import cannot be `default`
73
- //~^ ERROR `use` import not supported in `trait` or `impl`
73
+ //~^ ERROR `use` import is not supported in `trait`s or `impl`s
74
74
default static foo: u8 ; //~ ERROR a static item cannot be `default`
75
75
//~^ ERROR associated `static` items are not allowed
76
76
default const foo: u8 ;
77
77
default fn foo ( ) ;
78
78
default mod foo { } //~ ERROR a module cannot be `default`
79
- //~^ ERROR module not supported in `trait` or `impl`
79
+ //~^ ERROR module is not supported in `trait`s or `impl`s
80
80
default extern "C" { } //~ ERROR an extern block cannot be `default`
81
- //~^ ERROR extern block not supported in `trait` or `impl`
81
+ //~^ ERROR extern block is not supported in `trait`s or `impl`s
82
82
default type foo = u8 ;
83
83
default enum foo { } //~ ERROR an enum cannot be `default`
84
- //~^ ERROR enum not supported in `trait` or `impl`
84
+ //~^ ERROR enum is not supported in `trait`s or `impl`s
85
85
default struct foo { } //~ ERROR a struct cannot be `default`
86
- //~^ ERROR struct not supported in `trait` or `impl`
86
+ //~^ ERROR struct is not supported in `trait`s or `impl`s
87
87
default union foo { } //~ ERROR a union cannot be `default`
88
- //~^ ERROR union not supported in `trait` or `impl`
88
+ //~^ ERROR union is not supported in `trait`s or `impl`s
89
89
default trait foo { } //~ ERROR a trait cannot be `default`
90
- //~^ ERROR trait not supported in `trait` or `impl`
90
+ //~^ ERROR trait is not supported in `trait`s or `impl`s
91
91
default trait foo = Ord ; //~ ERROR a trait alias cannot be `default`
92
- //~^ ERROR trait alias not supported in `trait` or `impl`
92
+ //~^ ERROR trait alias is not supported in `trait`s or `impl`s
93
93
default impl foo { }
94
- //~^ ERROR implementation not supported in `trait` or `impl`
94
+ //~^ ERROR implementation is not supported in `trait`s or `impl`s
95
95
default !( ) ;
96
96
default :: foo:: bar!( ) ;
97
97
default default !( ) ; //~ ERROR an item macro invocation cannot be `default`
98
98
default default :: foo:: bar!( ) ; //~ ERROR an item macro invocation cannot be `default`
99
99
default macro foo { } //~ ERROR a macro definition cannot be `default`
100
- //~^ ERROR macro definition not supported in `trait` or `impl`
100
+ //~^ ERROR macro definition is not supported in `trait`s or `impl`s
101
101
default macro_rules! foo { } //~ ERROR a macro definition cannot be `default`
102
- //~^ ERROR macro definition not supported in `trait` or `impl`
102
+ //~^ ERROR macro definition is not supported in `trait`s or `impl`s
103
103
}
104
104
105
105
#[ cfg( FALSE ) ]
106
106
trait T {
107
107
default extern crate foo; //~ ERROR an extern crate cannot be `default`
108
- //~^ ERROR extern crate not supported in `trait` or `impl`
108
+ //~^ ERROR extern crate is not supported in `trait`s or `impl`s
109
109
default use foo; //~ ERROR a `use` import cannot be `default`
110
- //~^ ERROR `use` import not supported in `trait` or `impl`
110
+ //~^ ERROR `use` import is not supported in `trait`s or `impl`s
111
111
default static foo: u8 ; //~ ERROR a static item cannot be `default`
112
112
//~^ ERROR associated `static` items are not allowed
113
113
default const foo: u8 ;
114
114
default fn foo ( ) ;
115
115
default mod foo { } //~ ERROR a module cannot be `default`
116
- //~^ ERROR module not supported in `trait` or `impl`
116
+ //~^ ERROR module is not supported in `trait`s or `impl`s
117
117
default extern "C" { } //~ ERROR an extern block cannot be `default`
118
- //~^ ERROR extern block not supported in `trait` or `impl`
118
+ //~^ ERROR extern block is not supported in `trait`s or `impl`s
119
119
default type foo = u8 ;
120
120
default enum foo { } //~ ERROR an enum cannot be `default`
121
- //~^ ERROR enum not supported in `trait` or `impl`
121
+ //~^ ERROR enum is not supported in `trait`s or `impl`s
122
122
default struct foo { } //~ ERROR a struct cannot be `default`
123
- //~^ ERROR struct not supported in `trait` or `impl`
123
+ //~^ ERROR struct is not supported in `trait`s or `impl`s
124
124
default union foo { } //~ ERROR a union cannot be `default`
125
- //~^ ERROR union not supported in `trait` or `impl`
125
+ //~^ ERROR union is not supported in `trait`s or `impl`s
126
126
default trait foo { } //~ ERROR a trait cannot be `default`
127
- //~^ ERROR trait not supported in `trait` or `impl`
127
+ //~^ ERROR trait is not supported in `trait`s or `impl`s
128
128
default trait foo = Ord ; //~ ERROR a trait alias cannot be `default`
129
- //~^ ERROR trait alias not supported in `trait` or `impl`
129
+ //~^ ERROR trait alias is not supported in `trait`s or `impl`s
130
130
default impl foo { }
131
- //~^ ERROR implementation not supported in `trait` or `impl`
131
+ //~^ ERROR implementation is not supported in `trait`s or `impl`s
132
132
default !( ) ;
133
133
default :: foo:: bar!( ) ;
134
134
default default !( ) ; //~ ERROR an item macro invocation cannot be `default`
135
135
default default :: foo:: bar!( ) ; //~ ERROR an item macro invocation cannot be `default`
136
136
default macro foo { } //~ ERROR a macro definition cannot be `default`
137
- //~^ ERROR macro definition not supported in `trait` or `impl`
137
+ //~^ ERROR macro definition is not supported in `trait`s or `impl`s
138
138
default macro_rules! foo { } //~ ERROR a macro definition cannot be `default`
139
- //~^ ERROR macro definition not supported in `trait` or `impl`
139
+ //~^ ERROR macro definition is not supported in `trait`s or `impl`s
140
140
}
0 commit comments