summary refs log tree commit diff
path: root/tests/ui/unsafe/inline_asm.rs
blob: df45b8640c1a42d59796803a8b5f7de4bdc9e0cc (plain)
1
2
3
4
5
6
7
// needs-asm-support

use std::arch::asm;

fn main() {
    asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block
}