summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/remove-url-from-headings.rs
blob: 599c429a6e1de388f306ae803c44ecdfb95ce2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![crate_name = "foo"]

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

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