File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ deny( rustdoc:: broken_footnote) ]
2+
3+ //! Footnote referenced [^1]. And [^2]. And [^bla].
4+ //!
5+ //! [^1]: footnote defined
6+ //~^^^ ERROR: no footnote definition matching this footnote
7+ //~| ERROR: no footnote definition matching this footnote
Original file line number Diff line number Diff line change 1+ error: no footnote definition matching this footnote
2+ --> $DIR/broken-footnote.rs:3:35
3+ |
4+ LL | //! Footnote referenced [^1]. And [^2]. And [^bla].
5+ | -^^^
6+ | |
7+ | help: if it should not be a footnote, escape it: `\`
8+ |
9+ note: the lint level is defined here
10+ --> $DIR/broken-footnote.rs:1:9
11+ |
12+ LL | #![deny(rustdoc::broken_footnote)]
13+ | ^^^^^^^^^^^^^^^^^^^^^^^^
14+
15+ error: no footnote definition matching this footnote
16+ --> $DIR/broken-footnote.rs:3:45
17+ |
18+ LL | //! Footnote referenced [^1]. And [^2]. And [^bla].
19+ | -^^^^^
20+ | |
21+ | help: if it should not be a footnote, escape it: `\`
22+
23+ error: aborting due to 2 previous errors
24+
You can’t perform that action at this time.
0 commit comments