We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0437ec commit 88a5e1eCopy full SHA for 88a5e1e
tests/rustdoc-ui/intra-doc/empty-associated-items.rs
@@ -0,0 +1,8 @@
1
+// This test ensures that an empty associated item will not crash rustdoc.
2
+// This is a regression test for <https://github.com/rust-lang/rust/issues/140026>.
3
+
4
+#[deny(rustdoc::broken_intra_doc_links)]
5
6
+/// [`String::`]
7
+//~^ ERROR
8
+pub struct Foo;
tests/rustdoc-ui/intra-doc/empty-associated-items.stderr
@@ -0,0 +1,14 @@
+error: unresolved link to `String::`
+ --> $DIR/empty-associated-items.rs:6:7
+ |
+LL | /// [`String::`]
+ | ^^^^^^^^ the struct `String` has no field or associated item named ``
+note: the lint level is defined here
+ --> $DIR/empty-associated-items.rs:4:8
9
10
+LL | #[deny(rustdoc::broken_intra_doc_links)]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13
+error: aborting due to 1 previous error
14
0 commit comments