mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
21 lines
512 B
Rust
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() {}
|