0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 21:12:18 +01:00
rust/tests/rustdoc/remove-url-from-headings.rs
2024-06-24 11:08:41 +02:00

21 lines
512 B
Rust

// 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() {}