rust/src/test/ui/macros/global-asm.rs

8 lines
239 B
Rust
Raw Normal View History

#![feature(global_asm)]
fn main() {
global_asm!(); //~ ERROR requires at least a template string argument
global_asm!(struct); //~ ERROR expected expression
global_asm!(123); //~ ERROR asm template must be a string literal
}