File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,11 @@ pub fn foobar() {}
39
39
/// boo
40
40
/// ```
41
41
pub fn b ( ) { }
42
+
43
+ /// b
44
+ //~^ ERROR
45
+ ///
46
+ /// ```rust2018
47
+ /// boo
48
+ /// ```
49
+ pub fn c ( ) { }
Original file line number Diff line number Diff line change @@ -171,5 +171,16 @@ LL | | /// ```
171
171
|
172
172
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
173
173
174
- error: aborting due to 12 previous errors
174
+ error: unknown attribute `rust2018`. Did you mean `edition2018`?
175
+ --> $DIR/check-attr.rs:43:1
176
+ |
177
+ LL | / /// b
178
+ LL | |
179
+ LL | | ///
180
+ LL | | /// ```rust2018
181
+ LL | | /// boo
182
+ LL | | /// ```
183
+ | |_______^
184
+
185
+ error: aborting due to 13 previous errors
175
186
You can’t perform that action at this time.
0 commit comments