]> git.proxmox.com Git - rustc.git/blob - tests/ui/asm/aarch64/type-check-2.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / asm / aarch64 / type-check-2.stderr
1 error: invalid `sym` operand
2 --> $DIR/type-check-2.rs:75:19
3 |
4 LL | global_asm!("{}", sym C);
5 | ^^^^^ is an `i32`
6 |
7 = help: `sym` operands must refer to either a function or a static
8
9 error: invalid `sym` operand
10 --> $DIR/type-check-2.rs:24:20
11 |
12 LL | asm!("{}", sym C);
13 | ^^^^^ is an `i32`
14 |
15 = help: `sym` operands must refer to either a function or a static
16
17 error: arguments for inline assembly must be copyable
18 --> $DIR/type-check-2.rs:29:31
19 |
20 LL | asm!("{:v}", in(vreg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 |
23 = note: `SimdNonCopy` does not implement the Copy trait
24
25 error: cannot use value of type `[closure@$DIR/type-check-2.rs:41:28: 41:36]` for inline assembly
26 --> $DIR/type-check-2.rs:41:28
27 |
28 LL | asm!("{}", in(reg) |x: i32| x);
29 | ^^^^^^^^^^
30 |
31 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
32
33 error: cannot use value of type `Vec<i32>` for inline assembly
34 --> $DIR/type-check-2.rs:43:28
35 |
36 LL | asm!("{}", in(reg) vec![0]);
37 | ^^^^^^^
38 |
39 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
40 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42 error: cannot use value of type `(i32, i32, i32)` for inline assembly
43 --> $DIR/type-check-2.rs:45:28
44 |
45 LL | asm!("{}", in(reg) (1, 2, 3));
46 | ^^^^^^^^^
47 |
48 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
49
50 error: cannot use value of type `[i32; 3]` for inline assembly
51 --> $DIR/type-check-2.rs:47:28
52 |
53 LL | asm!("{}", in(reg) [1, 2, 3]);
54 | ^^^^^^^^^
55 |
56 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
57
58 error: cannot use value of type `fn() {main}` for inline assembly
59 --> $DIR/type-check-2.rs:55:31
60 |
61 LL | asm!("{}", inout(reg) f);
62 | ^
63 |
64 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
65
66 error: cannot use value of type `&mut i32` for inline assembly
67 --> $DIR/type-check-2.rs:58:31
68 |
69 LL | asm!("{}", inout(reg) r);
70 | ^
71 |
72 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
73
74 error: aborting due to 9 previous errors
75