about summary refs log tree commit diff
path: root/tests/rustdoc-ui/invalid-syntax.stderr
diff options
context:
space:
mode:
authorAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-05 09:13:28 +0100
committerAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-11 09:32:08 +0000
commitcf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch)
tree40a88d9a46aaf3e8870676eb2538378b75a263eb /tests/rustdoc-ui/invalid-syntax.stderr
parentca855e6e42787ecd062d81d53336fe6788ef51a9 (diff)
downloadrust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz
rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip
Move /src/test to /tests
Diffstat (limited to 'tests/rustdoc-ui/invalid-syntax.stderr')
-rw-r--r--tests/rustdoc-ui/invalid-syntax.stderr169
1 files changed, 169 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/invalid-syntax.stderr b/tests/rustdoc-ui/invalid-syntax.stderr
new file mode 100644
index 00000000000..597d19e748c
--- /dev/null
+++ b/tests/rustdoc-ui/invalid-syntax.stderr
@@ -0,0 +1,169 @@
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:3:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | /// \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unknown start of token: \
+   = note: error from rustc: unknown start of token: \
+   = note: error from rustc: unknown start of token: \
+   = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:9:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | ///    |
+LL | | /// LL | use foobar::Baz;
+LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unknown start of token: `
+   = note: error from rustc: unknown start of token: `
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:21:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | /// \_
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unknown start of token: \
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:35:5
+   |
+LL |   /// ```rust
+   |  _____^
+LL | | /// \_
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:45:9
+   |
+LL |   ///     code with bad syntax
+   |  _________^
+LL | | ///     \_
+   | |__________^
+   |
+   = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:60:9
+   |
+LL | ///     ```
+   |         ^^^
+   |
+   = note: error from rustc: unknown start of token: `
+   = note: error from rustc: unknown start of token: `
+   = note: error from rustc: unknown start of token: `
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:64:5
+   |
+LL |   /// ```edition2018
+   |  _____^
+LL | | /// \_
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:70:1
+   |
+LL | / #[doc = "```"]
+LL | | /// \_
+LL | | #[doc = "```"]
+   | |______________^
+   |
+   = help: mark blocks that do not contain Rust code as text: ```text
+   = note: error from rustc: unknown start of token: \
+
+warning: Rust code block is empty
+  --> $DIR/invalid-syntax.rs:76:5
+   |
+LL |   /// ```rust
+   |  _____^
+LL | | /// ```
+   | |_______^
+
+warning: Rust code block is empty
+  --> $DIR/invalid-syntax.rs:81:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | ///
+LL | | ///
+LL | | /// ```
+   | |_______^
+   |
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:92:9
+   |
+LL |   ///     \____/
+   |  _________^
+LL | | ///
+   | |_
+   |
+   = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:97:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | /// "invalid
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: unterminated double quote string
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: could not parse code block as Rust code
+  --> $DIR/invalid-syntax.rs:103:5
+   |
+LL |   /// ```
+   |  _____^
+LL | | /// fn wook_at_my_beautifuw_bwaces_plz() {);
+LL | | /// ```
+   | |_______^
+   |
+   = note: error from rustc: mismatched closing delimiter: `)`
+help: mark blocks that do not contain Rust code as text
+   |
+LL | /// ```text
+   |        ++++
+
+warning: 13 warnings emitted
+