summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/doctest/doctest-edition.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/doctest/doctest-edition.stderr')
-rw-r--r--tests/rustdoc-ui/doctest/doctest-edition.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/doctest-edition.stderr b/tests/rustdoc-ui/doctest/doctest-edition.stderr
new file mode 100644
index 000000000..8a3329aa3
--- /dev/null
+++ b/tests/rustdoc-ui/doctest/doctest-edition.stderr
@@ -0,0 +1,22 @@
+error: could not parse code block as Rust code
+ --> $DIR/doctest-edition.rs:7:5
+ |
+LL | //! ```
+ | _____^
+LL | | //! foo'b'
+LL | | //! ```
+ | |_______^
+ |
+ = note: error from rustc: prefix `foo` is unknown
+note: the lint level is defined here
+ --> $DIR/doctest-edition.rs:3:9
+ |
+LL | #![deny(rustdoc::invalid_rust_codeblocks)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+help: mark blocks that do not contain Rust code as text
+ |
+LL | //! ```text
+ | ++++
+
+error: aborting due to previous error
+