]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/asm-parse-errors.stderr
Rollup merge of #66471 - Alexendoo:test-issue-63116, r=Centril
[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 |     asm!();
5    |     ^^^^^^^ string literal required
6
7 error: expected string literal
8   --> $DIR/asm-parse-errors.rs:5:18
9    |
10 LL |     asm!("nop" : struct);
11    |                  ^^^^^^ not a string literal
12
13 error: expected string literal
14   --> $DIR/asm-parse-errors.rs:6:30
15    |
16 LL |     asm!("mov %eax, $$0x2" : struct);
17    |                              ^^^^^^ not a string literal
18
19 error: expected `(`, found keyword `struct`
20   --> $DIR/asm-parse-errors.rs:7:39
21    |
22 LL |     asm!("mov %eax, $$0x2" : "={eax}" struct);
23    |                                       ^^^^^^ expected `(`
24
25 error: expected expression, found keyword `struct`
26   --> $DIR/asm-parse-errors.rs:8:39
27    |
28 LL |     asm!("mov %eax, $$0x2" : "={eax}"(struct));
29    |                                       ^^^^^^ expected expression
30
31 error: expected string literal
32   --> $DIR/asm-parse-errors.rs:9:44
33    |
34 LL |     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:51
39    |
40 LL |     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:51
45    |
46 LL |     asm!("in %dx, %al" : "={al}"(result) : "{dx}"(struct));
47    |                                                   ^^^^^^ expected expression
48
49 error: expected string literal
50   --> $DIR/asm-parse-errors.rs:12:36
51    |
52 LL |     asm!("mov $$0x200, %eax" : : : struct);
53    |                                    ^^^^^^ not a string literal
54
55 error: expected string literal
56   --> $DIR/asm-parse-errors.rs:13:45
57    |
58 LL |     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:10
63    |
64 LL |     asm!(123);
65    |          ^^^
66
67 error: aborting due to 11 previous errors
68