// Regression test for . // Test that we're properly monomorphizing sym args in naked asm blocks // that point to associated items. //@ edition: 2021 //@ needs-asm-support //@ only-x86_64 //@ build-pass trait Tr { extern "C" fn t(); } enum E {} impl Tr for E { extern "C" fn t() { println!("Const generic: {}", C); } } #[unsafe(naked)] extern "C" fn foo() { core::arch::naked_asm!( "push rax", "call {fn}", "pop rax", "ret", fn = sym ::t, ); } fn main() { foo::>(); }