rust/tests/ui/feature-gates/feature-gate-asm_goto_with_outputs.rs

14 lines
267 B
Rust

//@ only-x86_64
#![feature(asm_goto)]
use std::arch::asm;
fn main() {
let mut _out: u64;
unsafe {
asm!("mov {}, 1", "jmp {}", out(reg) _out, label {});
//~^ ERROR using both label and output operands for inline assembly is unstable
}
}