about summary refs log tree commit diff
path: root/tests/ui/async-await/no-unsafe-async.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2025-03-29 17:24:03 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2025-04-03 21:41:58 +0000
commit303c1b45c29f8bb186a9a95cb56643d1aef773fa (patch)
treebb20ddf2dafd0064173d5d4164a351503453f9ea /tests/ui/async-await/no-unsafe-async.rs
parentd83f4153251ad3e85e975fa3e613378eba913c0b (diff)
downloadrust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.tar.gz
rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.zip
Use `cfg(false)` in UI tests
Diffstat (limited to 'tests/ui/async-await/no-unsafe-async.rs')
-rw-r--r--tests/ui/async-await/no-unsafe-async.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/async-await/no-unsafe-async.rs b/tests/ui/async-await/no-unsafe-async.rs
index e58d878c3db..cc7e89e16cb 100644
--- a/tests/ui/async-await/no-unsafe-async.rs
+++ b/tests/ui/async-await/no-unsafe-async.rs
@@ -3,11 +3,11 @@
 struct S;
 
 impl S {
-    #[cfg(FALSE)]
+    #[cfg(false)]
     unsafe async fn g() {} //~ ERROR expected one of `extern` or `fn`, found keyword `async`
 }
 
-#[cfg(FALSE)]
+#[cfg(false)]
 unsafe async fn f() {} //~ ERROR expected one of `extern` or `fn`, found keyword `async`
 
 fn main() {}