We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf5b12 commit c3ae826Copy full SHA for c3ae826
src/test/rustdoc-ui/ignore-block-help.rs
@@ -0,0 +1,7 @@
1
+// check-pass
2
+
3
+/// ```ignore (to-prevent-tidy-error)
4
+/// let heart = '❤️';
5
+/// ```
6
+//~^^^ WARN
7
+pub struct X;
src/test/rustdoc-ui/ignore-block-help.stderr
@@ -0,0 +1,17 @@
+warning: could not parse code block as Rust code
+ --> $DIR/ignore-block-help.rs:3:5
+ |
+LL | /// ```ignore (to-prevent-tidy-error)
+ | _____^
+LL | | /// let heart = '❤️';
+LL | | /// ```
8
+ | |_______^
9
10
+ = note: error from rustc: character literal may only contain one codepoint
11
+help: `ignore` code blocks require valid Rust code for syntax highlighting. Mark blocks that do not contain Rust code as text
12
13
+LL | /// ```text,ignore (to-prevent-tidy-error)
14
+ | ^^^^^^^^
15
16
+warning: 1 warning emitted
17
0 commit comments