Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/rustdoc/inline_local/macro_by_example.rs
Normal file
17
tests/rustdoc/inline_local/macro_by_example.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
/// docs for foo
|
||||
#[deprecated(since = "1.2.3", note = "text")]
|
||||
#[macro_export]
|
||||
macro_rules! foo {
|
||||
($($tt:tt)*) => {}
|
||||
}
|
||||
|
||||
// @has macro_by_example/macros/index.html
|
||||
pub mod macros {
|
||||
// @!hasraw - 'pub use foo as bar;'
|
||||
// @has macro_by_example/macros/macro.bar.html
|
||||
// @has - '//*[@class="docblock"]' 'docs for foo'
|
||||
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.2.3: text'
|
||||
// @has - '//a/@href' 'macro_by_example.rs.html#4-6'
|
||||
#[doc(inline)]
|
||||
pub use foo as bar;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue