summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/inline_asm.rs
blob: 4cd7e2717fe453fdd0254a61d56f6b6767e30674 (plain)
1
2
3
4
5
6
7
8
// needs-asm-support

use std::arch::asm;

const _: () = unsafe { asm!("nop") };
//~^ ERROR inline assembly

fn main() {}