diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2025-03-29 17:24:03 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2025-04-03 21:41:58 +0000 |
| commit | 303c1b45c29f8bb186a9a95cb56643d1aef773fa (patch) | |
| tree | bb20ddf2dafd0064173d5d4164a351503453f9ea /tests/ui/proc-macro/derive-cfg-nested-tokens.rs | |
| parent | d83f4153251ad3e85e975fa3e613378eba913c0b (diff) | |
| download | rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.tar.gz rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.zip | |
Use `cfg(false)` in UI tests
Diffstat (limited to 'tests/ui/proc-macro/derive-cfg-nested-tokens.rs')
| -rw-r--r-- | tests/ui/proc-macro/derive-cfg-nested-tokens.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/proc-macro/derive-cfg-nested-tokens.rs b/tests/ui/proc-macro/derive-cfg-nested-tokens.rs index 7d4e8d8373d..ec6aba0d1ea 100644 --- a/tests/ui/proc-macro/derive-cfg-nested-tokens.rs +++ b/tests/ui/proc-macro/derive-cfg-nested-tokens.rs @@ -15,7 +15,7 @@ struct S { // - on eagerly configured `S` (from `impl Copy`), only 11 should be printed // - on non-configured `S` (from `struct S`), both 10 and 11 should be printed field: [u8; #[print_attr] { - #[cfg(FALSE)] { 10 } + #[cfg(false)] { 10 } #[cfg(not(FALSE))] { 11 } }], } |
