Skip to content

Commit 02f75ab

Browse files
Add extra "broken_footnote" lint ui test
1 parent 60ef11a commit 02f75ab

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/rustdoc-ui/lints/broken-footnote.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@
55
//! [^1]: footnote defined
66
//~^^^ ERROR: no footnote definition matching this footnote
77
//~| ERROR: no footnote definition matching this footnote
8+
9+
// Should not lint.
10+
//! foo[^1]
11+
//!
12+
//! ```
13+
//!
14+
//! [^1]: bar
15+
//!
16+
//! ```

0 commit comments

Comments
 (0)