summary refs log tree commit diff
path: root/tests/rustdoc/remove-url-from-headings.rs
blob: 6e15f57e7ba902354b82d9e8b94116214b349c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// It actually checks that the link is kept in the headings as expected now.

#![crate_name = "foo"]

//@ has foo/fn.foo.html
//@ has - '//a[@href="http://a.a"]' 'stuff'
//@ has - '//*[@id="implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
//@ has - '//a[@href="http://b.b"]' 'one'
//@ has - '//*[@id="another-one-urg"]' 'Another one urg'

/// fooo
///
/// # Implementing [stuff](http://a.a "title") somewhere
///
/// hello
///
/// # Another [one][two] urg
///
/// [two]: http://b.b
pub fn foo() {}