We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d15fe commit 5a752cdCopy full SHA for 5a752cd
tests/rustdoc/footnote-in-summary.rs
@@ -0,0 +1,17 @@
1
+// This test ensures that no footnote reference is generated inside
2
+// summary doc.
3
+
4
+#![crate_name = "foo"]
5
6
+// @has 'foo/index.html'
7
+// @has - '//*[@class="desc docblock-short"]' 'hello bla'
8
+// @!has - '//*[@class="desc docblock-short"]/sup' '1'
9
10
+// @has 'foo/struct.S.html'
11
+// @has - '//*[@class="docblock"]//sup' '1'
12
+// @has - '//*[@class="docblock"]' 'hello 1 bla'
13
14
+/// hello [^foot] bla
15
+///
16
+/// [^foot]: blabla
17
+pub struct S;
0 commit comments