summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-asm_const.rs
blob: d41d7b258aafb5714649f2ecd772a2f4d49ed63d (plain)
1
2
3
4
5
6
7
8
9
10
// only-x86_64

use std::arch::asm;

fn main() {
    unsafe {
        asm!("mov eax, {}", const 123);
        //~^ ERROR const operands for inline assembly are unstable
    }
}