rust/src/test/ui/inline-asm-bad-constraint.stderr
2018-12-25 21:08:33 -07:00

22 lines
705 B
Plaintext

error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:21:9
|
LL | asm!("" :"={rax"(rax)) //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:29:9
|
LL | asm!("callq $0" : : "0"(foo)) //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:36:9
|
LL | asm!("addb $1, $0" : "={rax}"((0i32, rax))); //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0668`.