diff options
| author | Urgau <urgau@numericable.fr> | 2024-09-29 23:40:06 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-10-04 09:09:20 +0200 |
| commit | 781f1840cd37348ce4d76fff2b04e1ada531864e (patch) | |
| tree | 81d780054d7f840583c73067df987f601d66483a /tests/rustdoc-ui/cfg-boolean-literal.rs | |
| parent | 62ef411631efb25134e29da76fcdb7802aa94bd4 (diff) | |
| download | rust-781f1840cd37348ce4d76fff2b04e1ada531864e.tar.gz rust-781f1840cd37348ce4d76fff2b04e1ada531864e.zip | |
Adjust rustdoc for literal boolean support
Diffstat (limited to 'tests/rustdoc-ui/cfg-boolean-literal.rs')
| -rw-r--r-- | tests/rustdoc-ui/cfg-boolean-literal.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/cfg-boolean-literal.rs b/tests/rustdoc-ui/cfg-boolean-literal.rs new file mode 100644 index 00000000000..4d4e599bfee --- /dev/null +++ b/tests/rustdoc-ui/cfg-boolean-literal.rs @@ -0,0 +1,19 @@ +//@ check-pass + +#![feature(cfg_boolean_literals)] +#![feature(doc_cfg)] + +#[doc(cfg(false))] +pub fn foo() {} + +#[doc(cfg(true))] +pub fn bar() {} + +#[doc(cfg(any(true)))] +pub fn zoo() {} + +#[doc(cfg(all(true)))] +pub fn toy() {} + +#[doc(cfg(not(true)))] +pub fn nay() {} |
