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