Closed
Description
#[feature(asm)];
fn main() {
unsafe {
let x: uint = 0;
asm!("" : "+r"(x));
}
}
$ rustc -v
rustc 0.10-pre (68a4f7d 2014-02-24 12:42:02 -0800)
host: x86_64-unknown-linux-gnu
$ rustc foo.rs
foo.rs:6:19: 6:23 error: internal compiler error: unimplemented '+' (read+write) output operand constraint modifier
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
foo.rs:6 asm!("" : "+r"(x));
Metadata
Metadata
Assignees
Labels
No labels