We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unused_footnote_definition
1 parent 96d8acd commit 40b5fa2Copy full SHA for 40b5fa2
tests/rustdoc-ui/lints/unused-footnote.rs
@@ -0,0 +1,9 @@
1
+// This test ensures that the rustdoc `unused_footnote` is working as expected.
2
+
3
+#![deny(rustdoc::unused_footnote_definition)]
4
5
+//! Footnote referenced. [^2]
6
+//!
7
+//! [^1]: footnote defined
8
+//! [^2]: footnote defined
9
+//~^^ unused_footnote_definition
tests/rustdoc-ui/lints/unused-footnote.stderr
@@ -0,0 +1,14 @@
+error: unused footnote definition
+ --> $DIR/unused-footnote.rs:7:6
+ |
+LL | //! [^1]: footnote defined
+ | ^
+note: the lint level is defined here
+ --> $DIR/unused-footnote.rs:3:9
10
+LL | #![deny(rustdoc::unused_footnote_definition)]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13
+error: aborting due to 1 previous error
14
0 commit comments