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/parser/default-on-wrong-item-kind.rs | |
| parent | d83f4153251ad3e85e975fa3e613378eba913c0b (diff) | |
| download | rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.tar.gz rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.zip | |
Use `cfg(false)` in UI tests
Diffstat (limited to 'tests/ui/parser/default-on-wrong-item-kind.rs')
| -rw-r--r-- | tests/ui/parser/default-on-wrong-item-kind.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/parser/default-on-wrong-item-kind.rs b/tests/ui/parser/default-on-wrong-item-kind.rs index 98a95cfa35a..da990a4b421 100644 --- a/tests/ui/parser/default-on-wrong-item-kind.rs +++ b/tests/ui/parser/default-on-wrong-item-kind.rs @@ -4,7 +4,7 @@ fn main() {} -#[cfg(FALSE)] +#[cfg(false)] mod free_items { default extern crate foo; //~ ERROR an extern crate cannot be `default` default use foo; //~ ERROR a `use` import cannot be `default` @@ -28,7 +28,7 @@ mod free_items { default macro_rules! foo {} //~ ERROR a macro definition cannot be `default` } -#[cfg(FALSE)] +#[cfg(false)] extern "C" { default extern crate foo; //~ ERROR an extern crate cannot be `default` //~^ ERROR extern crate is not supported in `extern` blocks @@ -65,7 +65,7 @@ extern "C" { //~^ ERROR macro definition is not supported in `extern` blocks } -#[cfg(FALSE)] +#[cfg(false)] impl S { default extern crate foo; //~ ERROR an extern crate cannot be `default` //~^ ERROR extern crate is not supported in `trait`s or `impl`s @@ -102,7 +102,7 @@ impl S { //~^ ERROR macro definition is not supported in `trait`s or `impl`s } -#[cfg(FALSE)] +#[cfg(false)] trait T { default extern crate foo; //~ ERROR an extern crate cannot be `default` //~^ ERROR extern crate is not supported in `trait`s or `impl`s |
