File tree 2 files changed +39
-1
lines changed
2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,12 @@ pub fn b() {}
47
47
/// boo
48
48
/// ```
49
49
pub fn c ( ) { }
50
+
51
+ /// b
52
+ //~^ ERROR
53
+ //~| ERROR
54
+ ///
55
+ /// ```rust2018 shouldpanic
56
+ /// boo
57
+ /// ```
58
+ pub fn d ( ) { }
Original file line number Diff line number Diff line change @@ -196,5 +196,34 @@ LL | | /// ```
196
196
|
197
197
= help: there is an attribute with a similar name: `edition2018`
198
198
199
- error: aborting due to 13 previous errors
199
+ error: unknown attribute `rust2018`
200
+ --> $DIR/check-attr.rs:51:1
201
+ |
202
+ LL | / /// b
203
+ LL | |
204
+ LL | |
205
+ LL | | ///
206
+ LL | | /// ```rust2018 shouldpanic
207
+ LL | | /// boo
208
+ LL | | /// ```
209
+ | |_______^
210
+ |
211
+ = help: there is an attribute with a similar name: `edition2018`
212
+
213
+ error: unknown attribute `shouldpanic`
214
+ --> $DIR/check-attr.rs:51:1
215
+ |
216
+ LL | / /// b
217
+ LL | |
218
+ LL | |
219
+ LL | | ///
220
+ LL | | /// ```rust2018 shouldpanic
221
+ LL | | /// boo
222
+ LL | | /// ```
223
+ | |_______^
224
+ |
225
+ = help: there is an attribute with a similar name: `should_panic`
226
+ = help: the code block will either not be tested if not marked as a rust one or won't fail if it doesn't panic when running
227
+
228
+ error: aborting due to 15 previous errors
200
229
You can’t perform that action at this time.
0 commit comments