about summary refs log tree commit diff
path: root/tests/ui/unsafe/inline_asm.rs
blob: 039160f5e17d864a163684a93770b1acf8a7b186 (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
}