]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/remove-url-from-headings.rs
Rollup merge of #107580 - lenko-d:default_value_for_a_lifetime_generic_parameter_prod...
[rust.git] / tests / 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() {}