fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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