Malformed inline assembly rejected by LLVM.
Erroneous code example:
#![feature(llvm_asm)]
fn main() {
let rax: u64;
unsafe {
llvm_asm!("" :"={rax"(rax));
println!("Accumulator is: {}", rax);
}
} LLVM checks the validity of the constraints and the assembly string passed to it. This error implies that LLVM seems something wrong with the inline assembly call.
In particular, it can happen if you forgot the closing bracket of a register constraint (see issue #51430), like in the previous code example.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0668.html