//@ compile-flags: -Ztreat-err-as-bug=2 //@ needs-asm-support //@ ignore-nvptx64 //@ ignore-spirv #![feature(asm_const)] use std::arch::{asm, global_asm}; fn main() { unsafe { asm!("{}", const 0f32); //~^ ERROR invalid type for `const` operand } } // Const operands must be integers and must be constants. global_asm!("{}", const 0f32); //~^ ERROR invalid type for `const` operand