about summary refs log tree commit diff
path: root/tests/rustdoc/footnote-in-summary.rs
blob: 2a9668a9963b0aa31d5be94527b875fc52f44e61 (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 - '//dd' 'hello bla'
//@ !has - '//dd/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;