2021-11-02 08:36:54 -05:00
|
|
|
#![feature(doc_auto_cfg)]
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.foo.html
|
|
|
|
//@ has - '//*[@class="item-info"]/*[@class="stab portability"]' 'non-meowmeow'
|
2022-06-14 14:34:00 -05:00
|
|
|
#[cfg(not(meowmeow))]
|
2021-11-02 08:36:54 -05:00
|
|
|
pub fn foo() {}
|
2022-01-13 08:50:21 -06:00
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.bar.html
|
|
|
|
//@ has - '//*[@class="item-info"]/*[@class="stab portability"]' 'meowmeow'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'test'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doc'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doctest'
|
2022-06-14 14:34:00 -05:00
|
|
|
#[cfg(any(meowmeow, test, doc, doctest))]
|
2022-01-13 08:50:21 -06:00
|
|
|
pub fn bar() {}
|
2022-06-14 14:06:28 -05:00
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.appear_1.html
|
|
|
|
//@ has - '//*[@class="item-info"]/*[@class="stab portability"]' 'meowmeow'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doc'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'non-test'
|
2022-06-14 14:34:00 -05:00
|
|
|
#[cfg(any(meowmeow, doc, not(test)))]
|
2022-06-14 14:06:28 -05:00
|
|
|
pub fn appear_1() {} // issue #98065
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.appear_2.html
|
|
|
|
//@ has - '//*[@class="item-info"]/*[@class="stab portability"]' 'meowmeow'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doc'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'test'
|
2022-06-14 14:34:00 -05:00
|
|
|
#[cfg(any(meowmeow, doc, all(test)))]
|
2022-06-14 14:06:28 -05:00
|
|
|
pub fn appear_2() {} // issue #98065
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.appear_3.html
|
|
|
|
//@ has - '//*[@class="item-info"]/*[@class="stab portability"]' 'meowmeow'
|
|
|
|
//@ !has - '//*[@class="item-info"]/*[@class="stab portability"]' 'doc'
|
2022-06-14 14:34:00 -05:00
|
|
|
#[cfg(any(meowmeow, doc, all()))]
|
2022-06-14 14:06:28 -05:00
|
|
|
pub fn appear_3() {} // issue #98065
|