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 5fb2d8b commit 0976e5eCopy full SHA for 0976e5e
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