We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustX
1 parent d3cb25f commit 98aa20bCopy full SHA for 98aa20b
tests/rustdoc-ui/lints/check-attr.rs
@@ -39,3 +39,11 @@ pub fn foobar() {}
39
/// boo
40
/// ```
41
pub fn b() {}
42
+
43
+/// b
44
+//~^ ERROR
45
+///
46
+/// ```rust2018
47
+/// boo
48
+/// ```
49
+pub fn c() {}
tests/rustdoc-ui/lints/check-attr.stderr
@@ -171,5 +171,16 @@ LL | | /// ```
171
|
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
174
-error: aborting due to 12 previous errors
+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
186
0 commit comments