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/conditional-compilation/cfg-non-opt-expr.rs | |
| parent | d83f4153251ad3e85e975fa3e613378eba913c0b (diff) | |
| download | rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.tar.gz rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.zip | |
Use `cfg(false)` in UI tests
Diffstat (limited to 'tests/ui/conditional-compilation/cfg-non-opt-expr.rs')
| -rw-r--r-- | tests/ui/conditional-compilation/cfg-non-opt-expr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/conditional-compilation/cfg-non-opt-expr.rs b/tests/ui/conditional-compilation/cfg-non-opt-expr.rs index ae85f38e645..cae07ae0ced 100644 --- a/tests/ui/conditional-compilation/cfg-non-opt-expr.rs +++ b/tests/ui/conditional-compilation/cfg-non-opt-expr.rs @@ -2,10 +2,10 @@ #![feature(custom_test_frameworks)] fn main() { - let _ = #[cfg(FALSE)] (); + let _ = #[cfg(false)] (); //~^ ERROR removing an expression is not supported in this position - let _ = 1 + 2 + #[cfg(FALSE)] 3; + let _ = 1 + 2 + #[cfg(false)] 3; //~^ ERROR removing an expression is not supported in this position - let _ = [1, 2, 3][#[cfg(FALSE)] 1]; + let _ = [1, 2, 3][#[cfg(false)] 1]; //~^ ERROR removing an expression is not supported in this position } |
