rust/src/test/ui/consts/miri_unleashed/inline_asm.stderr

32 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-04-19 05:05:28 -05:00
error[E0080]: could not evaluate static initializer
--> $DIR/inline_asm.rs:13:14
2020-04-19 05:05:28 -05:00
|
LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported
2020-04-19 05:05:28 -05:00
|
= note: this error originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-04-19 05:05:28 -05:00
2020-06-01 13:53:45 -05:00
error[E0080]: could not evaluate static initializer
--> $DIR/inline_asm.rs:22:14
2020-06-01 13:53:45 -05:00
|
LL | unsafe { asm!("nop"); }
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^^^ inline assembly is not supported
2020-06-01 13:53:45 -05:00
2020-05-03 07:23:08 -05:00
warning: skipping const checks
|
help: skipping check that does not even have a feature gate
--> $DIR/inline_asm.rs:13:14
2020-05-03 07:23:08 -05:00
|
LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-06-01 13:53:45 -05:00
help: skipping check that does not even have a feature gate
--> $DIR/inline_asm.rs:22:14
2020-06-01 13:53:45 -05:00
|
LL | unsafe { asm!("nop"); }
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^^^
= note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-05-03 07:23:08 -05:00
2020-06-01 13:53:45 -05:00
error: aborting due to 2 previous errors; 1 warning emitted
2020-04-19 05:05:28 -05:00
For more information about this error, try `rustc --explain E0080`.