mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Update doc_auto_cfg test
This commit is contained in:
parent
682ef4db80
commit
fd005f53c2
@ -3,6 +3,12 @@
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/fn.foo.html
|
||||
// @has - '//*[@class="item-info"]/*[@class="stab portability"]' 'non-test'
|
||||
#[cfg(not(test))]
|
||||
// @has - '//*[@class="item-info"]/*[@class="stab portability"]' 'non-doctest'
|
||||
#[cfg(not(doctest))]
|
||||
pub fn foo() {}
|
||||
|
||||
// @has foo/fn.bar.html
|
||||
// @has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doc'
|
||||
// @!has - '//*[@class="item-info"]/*[@class="stab portability"]' 'test'
|
||||
#[cfg(any(test, doc))]
|
||||
pub fn bar() {}
|
||||
|
Loading…
Reference in New Issue
Block a user