We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d4ec6 commit caa0799Copy full SHA for caa0799
src/test/ui/asm/invalid-inline-asm-2.rs
@@ -0,0 +1,10 @@
1
+#![feature(asm)]
2
+
3
+fn main() {
4
+ let a: usize;
5
6
+ unsafe {
7
+ asm!("" : "=d"(a) : : : );
8
+ //~^ ERROR couldn't allocate output register for constraint 'd'
9
+ }
10
+}
src/test/ui/asm/invalid-inline-asm-2.stderr
@@ -0,0 +1,8 @@
+error: couldn't allocate output register for constraint 'd'
+ --> $DIR/invalid-inline-asm-2.rs:7:9
+ |
+LL | asm!("" : "=d"(a) : : : );
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+error: aborting due to previous error
0 commit comments