Skip to content

Commit dad6802

Browse files
Add regression test for rust-lang#100638
1 parent 4a11936 commit dad6802

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#![crate_name = "foo"]
2+
3+
//! Reference to footnotes A[^1], B[^2] and C[^3].
4+
//!
5+
//! [^1]: Footnote A.
6+
//! [^2]: Footnote B.
7+
//! [^3]: Footnote C.
8+
9+
// @has 'foo/index.html'
10+
// @has - '//*[@class="docblock"]/*[@class="footnotes"]/ol/li[@id="fn1"]/p' 'Footnote A'
11+
// @has - '//li[@id="fn1"]/p/a/@href' '#fnref1'
12+
// @has - '//*[@class="docblock"]/*[@class="footnotes"]/ol/li[@id="fn2"]/p' 'Footnote B'
13+
// @has - '//li[@id="fn2"]/p/a/@href' '#fnref2'
14+
// @has - '//*[@class="docblock"]/*[@class="footnotes"]/ol/li[@id="fn3"]/p' 'Footnote C'
15+
// @has - '//li[@id="fn3"]/p/a/@href' '#fnref3'

0 commit comments

Comments
 (0)