]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/asm-parse-errors.stderr
Auto merge of #71230 - Dylan-DPC:rollup-rofigbv, r=Dylan-DPC
[rust.git] / src / test / ui / asm / asm-parse-errors.stderr
1 error: macro requires a string literal as an argument
2   --> $DIR/asm-parse-errors.rs:4:5
3    |
4 LL |     llvm_asm!();
5    |     ^^^^^^^^^^^^ string literal required
6
7 error: expected string literal
8   --> $DIR/asm-parse-errors.rs:5:23
9    |
10 LL |     llvm_asm!("nop" : struct);
11    |                       ^^^^^^ not a string literal
12
13 error: expected string literal
14   --> $DIR/asm-parse-errors.rs:6:35
15    |
16 LL |     llvm_asm!("mov %eax, $$0x2" : struct);
17    |                                   ^^^^^^ not a string literal
18
19 error: expected `(`, found keyword `struct`
20   --> $DIR/asm-parse-errors.rs:7:44
21    |
22 LL |     llvm_asm!("mov %eax, $$0x2" : "={eax}" struct);
23    |                                            ^^^^^^ expected `(`
24
25 error: expected expression, found keyword `struct`
26   --> $DIR/asm-parse-errors.rs:8:44
27    |
28 LL |     llvm_asm!("mov %eax, $$0x2" : "={eax}"(struct));
29    |                                            ^^^^^^ expected expression
30
31 error: expected string literal
32   --> $DIR/asm-parse-errors.rs:9:49
33    |
34 LL |     llvm_asm!("in %dx, %al" : "={al}"(result) : struct);
35    |                                                 ^^^^^^ not a string literal
36
37 error: expected `(`, found keyword `struct`
38   --> $DIR/asm-parse-errors.rs:10:56
39    |
40 LL |     llvm_asm!("in %dx, %al" : "={al}"(result) : "{dx}" struct);
41    |                                                        ^^^^^^ expected `(`
42
43 error: expected expression, found keyword `struct`
44   --> $DIR/asm-parse-errors.rs:11:56
45    |
46 LL |     llvm_asm!("in %dx, %al" : "={al}"(result) : "{dx}"(struct));
47    |                                                        ^^^^^^ expected expression
48
49 error: expected string literal
50   --> $DIR/asm-parse-errors.rs:12:41
51    |
52 LL |     llvm_asm!("mov $$0x200, %eax" : : : struct);
53    |                                         ^^^^^^ not a string literal
54
55 error: expected string literal
56   --> $DIR/asm-parse-errors.rs:13:50
57    |
58 LL |     llvm_asm!("mov eax, 2" : "={eax}"(foo) : : : struct);
59    |                                                  ^^^^^^ not a string literal
60
61 error: inline assembly must be a string literal
62   --> $DIR/asm-parse-errors.rs:14:15
63    |
64 LL |     llvm_asm!(123);
65    |               ^^^
66
67 error: aborting due to 11 previous errors
68