]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0662.md
Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0662.md
1 An invalid input operand constraint was passed to the `llvm_asm` macro
2 (third line).
3
4 Erroneous code example:
5
6 ```compile_fail,E0662
7 llvm_asm!("xor %eax, %eax"
8           :
9           : "=test"("a")
10          );
11 ```
12
13 Considering that this would be a long explanation, we instead recommend you
14 take a look at the [`llvm_asm`] chapter of the Unstable book:
15
16 [`llvm_asm`]: https://doc.rust-lang.org/stable/unstable-book/library-features/llvm-asm.html