]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | An invalid input operand constraint was passed to the `llvm_asm` macro |
2 | (third line). | |
60c5eb7d XL |
3 | |
4 | Erroneous code example: | |
5 | ||
6 | ```compile_fail,E0663 | |
ba9703b0 XL |
7 | llvm_asm!("xor %eax, %eax" |
8 | : | |
9 | : "+test"("a") | |
10 | ); | |
60c5eb7d XL |
11 | ``` |
12 | ||
74b04a01 | 13 | Considering that this would be a long explanation, we instead recommend you |
f9f354fc | 14 | take a look at the [`llvm_asm`] chapter of the Unstable book: |
74b04a01 | 15 | |
29967ef6 | 16 | [`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html |