summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/footnote-in-summary.rs
blob: e6ff5a7fd51dcb901366c10a33381c3ed282bf60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This test ensures that no footnote reference is generated inside
// summary doc.

#![crate_name = "foo"]

// @has 'foo/index.html'
// @has - '//*[@class="desc docblock-short"]' 'hello bla'
// @!has - '//*[@class="desc docblock-short"]/sup' '1'

// @has 'foo/struct.S.html'
// @has - '//*[@class="docblock"]//sup' '1'
// @has - '//*[@class="docblock"]' 'hello 1 bla'

/// hello [^foot] bla
///
/// [^foot]: blabla
pub struct S;