]> git.proxmox.com Git - rustc.git/blame - tests/rustdoc/compiler-derive-proc-macro.rs
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / rustdoc / compiler-derive-proc-macro.rs
CommitLineData
353b0b11
FG
1// This test ensures that compiler builtin proc-macros are considered as such.
2
3#![crate_name = "foo"]
4
5// @has 'foo/index.html'
6// Each compiler builtin proc-macro has a trait equivalent so we should have
7// a trait section as well.
4b012472
FG
8// @count - '//*[@id="main-content"]//*[@class="section-header"]' 2
9// @has - '//*[@id="main-content"]//*[@class="section-header"]' 'Traits'
10// @has - '//*[@id="main-content"]//*[@class="section-header"]' 'Derive Macros'
353b0b11
FG
11
12// Now checking the correct file is generated as well.
13// @has 'foo/derive.Clone.html'
14// @!has 'foo/macro.Clone.html'
15pub use std::clone::Clone;