rust/tests/rustdoc/intra-doc/macros-disambiguators.rs

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

26 lines
528 B
Rust
Raw Normal View History

2021-06-21 15:42:31 -05:00
#![crate_name = "foo"]
#![deny(rustdoc::broken_intra_doc_links)]
//! [foo!()]
//@ has foo/index.html '//a[@href="macro.foo.html"]' 'foo!()'
2021-06-21 15:42:31 -05:00
//! [foo!{}]
//@ has - '//a[@href="macro.foo.html"]' 'foo!{}'
2021-06-21 15:42:31 -05:00
//! [foo![]](foo![])
//@ has - '//a[@href="macro.foo.html"]' 'foo![]'
2021-06-21 15:42:31 -05:00
//! [foo1](foo!())
//@ has - '//a[@href="macro.foo.html"]' 'foo1'
2021-06-21 15:42:31 -05:00
//! [foo2](foo!{})
//@ has - '//a[@href="macro.foo.html"]' 'foo2'
2021-06-21 15:42:31 -05:00
//! [foo3](foo![])
//@ has - '//a[@href="macro.foo.html"]' 'foo3'
2021-06-21 15:42:31 -05:00
#[macro_export]
macro_rules! foo {
() => {};
}