rust/tests/rustdoc/remove-url-from-headings.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
394 B
Rust
Raw Normal View History

2020-01-14 18:21:10 +00:00
#![crate_name = "foo"]
// @has foo/fn.foo.html
// @!has - '//a[@href="http://a.a"]' ''
2020-01-14 18:21:10 +00:00
// @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
2020-01-16 13:26:43 +00:00
// @has - '//a[@href="#another-one-urg"]' 'Another one urg'
2020-01-14 18:21:10 +00:00
/// fooo
///
2020-01-17 18:49:03 +00:00
/// # Implementing [stuff](http://a.a "title") somewhere
2020-01-14 18:21:10 +00:00
///
/// hello
2020-01-16 13:26:43 +00:00
///
/// # Another [one][two] urg
///
/// [two]: http://a.a
2020-01-14 18:21:10 +00:00
pub fn foo() {}