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

21 lines
637 B
Plaintext
Raw Normal View History

error: macro requires a string literal as an argument
--> $DIR/global-asm.rs:4:5
|
LL | global_asm!(); //~ ERROR requires a string literal as an argument
| ^^^^^^^^^^^^^^ string literal required
error: expected expression, found keyword `struct`
--> $DIR/global-asm.rs:5:17
|
LL | global_asm!(struct); //~ ERROR expected expression
| ^^^^^^ expected expression
error: inline assembly must be a string literal
--> $DIR/global-asm.rs:6:17
|
LL | global_asm!(123); //~ ERROR inline assembly must be a string literal
| ^^^
error: aborting due to 3 previous errors