about summary refs log tree commit diff
path: root/tests/ui/asm/const-resolve-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/asm/const-resolve-error.rs')
-rw-r--r--tests/ui/asm/const-resolve-error.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/asm/const-resolve-error.rs b/tests/ui/asm/const-resolve-error.rs
new file mode 100644
index 00000000000..19c8af0d542
--- /dev/null
+++ b/tests/ui/asm/const-resolve-error.rs
@@ -0,0 +1,10 @@
+//@ edition:2021
+//@ needs-asm-support
+
+use std::arch::asm;
+
+async unsafe fn foo<'a>() {
+    asm!("/* {0} */", const N); //~ ERROR E0425
+}
+
+fn main() {}