]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/remove-url-from-headings.rs
Extend url in heading test a bit
[rust.git] / src / test / rustdoc / remove-url-from-headings.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.foo.html
4 // !@has - '//a[@href="http://a.a"]'
5 // @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
6 // @has - '//a[@href="#another-one-urg"]' 'Another one urg'
7
8 /// fooo
9 ///
10 /// # Implementing [stuff](http://a.a "title") somewhere
11 ///
12 /// hello
13 ///
14 /// # Another [one][two] urg
15 ///
16 /// [two]: http://a.a
17 pub fn foo() {}