File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ // Checks that footnote references in footnote definitions are correctly generated.
2+ // Regression test for <https://github.com/rust-lang/rust/issues/131946>.
3+
4+ #![ crate_name = "foo" ]
5+
6+ //@ has 'foo/index.html'
7+ //@ has - '//*[@class="docblock"]/p/sup[@id="fnref1"]/a[@href="#fn1"]' '1'
8+ //@ has - '//li[@id="fn1"]/p' 'meow'
9+ //@ has - '//li[@id="fn1"]/p/sup[@id="fnref2"]/a[@href="#fn2"]' '2'
10+ //@ has - '//li[@id="fn1"]//a[@href="#fn2"]' '2'
11+ //@ has - '//li[@id="fn2"]/p' 'uwu'
12+ //@ has - '//li[@id="fn2"]/p/sup[@id="fnref1"]/a[@href="#fn1"]' '1'
13+ //@ has - '//li[@id="fn2"]//a[@href="#fn1"]' '1'
14+
15+ //! # footnote-hell
16+ //!
17+ //! Hello [^a].
18+ //!
19+ //! [^a]: meow [^b]
20+ //! [^b]: uwu [^a]
You can’t perform that action at this time.
0 commit comments