about summary refs log tree commit diff
path: root/tests/rustdoc-ui/lint-group.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/lint-group.stderr')
-rw-r--r--tests/rustdoc-ui/lint-group.stderr50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/lint-group.stderr b/tests/rustdoc-ui/lint-group.stderr
new file mode 100644
index 00000000000..4f2c9658891
--- /dev/null
+++ b/tests/rustdoc-ui/lint-group.stderr
@@ -0,0 +1,50 @@
+error: missing code example in this documentation
+  --> $DIR/lint-group.rs:18:1
+   |
+LL | /// wait, this doesn't have a doctest?
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+note: the lint level is defined here
+  --> $DIR/lint-group.rs:9:9
+   |
+LL | #![deny(rustdoc::all)]
+   |         ^^^^^^^^^^^^
+   = note: `#[deny(rustdoc::missing_doc_code_examples)]` implied by `#[deny(rustdoc::all)]`
+
+error: documentation test in private item
+  --> $DIR/lint-group.rs:21:1
+   |
+LL | / /// wait, this *does* have a doctest?
+LL | | ///
+LL | | /// ```
+LL | | /// println!("sup");
+LL | | /// ```
+   | |_______^
+   |
+   = note: `#[deny(rustdoc::private_doc_tests)]` implied by `#[deny(rustdoc::all)]`
+
+error: missing code example in this documentation
+  --> $DIR/lint-group.rs:28:1
+   |
+LL | /// <unknown>
+   | ^^^^^^^^^^^^^
+
+error: unresolved link to `error`
+  --> $DIR/lint-group.rs:11:29
+   |
+LL | /// what up, let's make an [error]
+   |                             ^^^^^ no item named `error` in scope
+   |
+   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
+   = note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(rustdoc::all)]`
+
+error: unclosed HTML tag `unknown`
+  --> $DIR/lint-group.rs:28:5
+   |
+LL | /// <unknown>
+   |     ^^^^^^^^^
+   |
+   = note: `#[deny(rustdoc::invalid_html_tags)]` implied by `#[deny(rustdoc::all)]`
+
+error: aborting due to 5 previous errors
+