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