diff --git a/tests/ui/asm/aarch64/type-check-4.rs b/tests/ui/asm/aarch64/type-check-4.rs index e700a078e5b76..12fba8f25abef 100644 --- a/tests/ui/asm/aarch64/type-check-4.rs +++ b/tests/ui/asm/aarch64/type-check-4.rs @@ -1,5 +1,5 @@ //@ only-aarch64 -//@ compile-flags: --emit=asm +//@ build-fail use std::arch::global_asm; diff --git a/tests/ui/asm/x86_64/type-check-4.rs b/tests/ui/asm/x86_64/type-check-4.rs index efdf9c6378017..01cb8fd635aca 100644 --- a/tests/ui/asm/x86_64/type-check-4.rs +++ b/tests/ui/asm/x86_64/type-check-4.rs @@ -1,5 +1,5 @@ //@ only-x86_64 -//@ compile-flags: --emit asm +//@ build-fail use std::arch::global_asm;