mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-18 10:38:11 +00:00
14 lines
267 B
Rust
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
|
||
|
}
|
||
|
}
|