]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/x86_64/type-check-2.stderr
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
[rust.git] / src / test / ui / asm / x86_64 / type-check-2.stderr
1 error: invalid `sym` operand
2   --> $DIR/type-check-2.rs:35:24
3    |
4 LL |         asm!("{}", sym x);
5    |                        ^ is a local variable
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:86:19
11    |
12 LL | global_asm!("{}", sym C);
13    |                   ^^^^^ is an `i32`
14    |
15    = help: `sym` operands must refer to either a function or a static
16
17 error: invalid `sym` operand
18   --> $DIR/type-check-2.rs:33:20
19    |
20 LL |         asm!("{}", sym C);
21    |                    ^^^^^ is an `i32`
22    |
23    = help: `sym` operands must refer to either a function or a static
24
25 error: arguments for inline assembly must be copyable
26   --> $DIR/type-check-2.rs:40:32
27    |
28 LL |         asm!("{}", in(xmm_reg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
29    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30    |
31    = note: `SimdNonCopy` does not implement the Copy trait
32
33 error: cannot use value of type `[closure@$DIR/type-check-2.rs:52:28: 52:38]` for inline assembly
34   --> $DIR/type-check-2.rs:52:28
35    |
36 LL |         asm!("{}", in(reg) |x: i32| x);
37    |                            ^^^^^^^^^^
38    |
39    = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
40
41 error: cannot use value of type `Vec<i32>` for inline assembly
42   --> $DIR/type-check-2.rs:54:28
43    |
44 LL |         asm!("{}", in(reg) vec![0]);
45    |                            ^^^^^^^
46    |
47    = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
48    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
49
50 error: cannot use value of type `(i32, i32, i32)` for inline assembly
51   --> $DIR/type-check-2.rs:56: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 `[i32; 3]` for inline assembly
59   --> $DIR/type-check-2.rs:58:28
60    |
61 LL |         asm!("{}", in(reg) [1, 2, 3]);
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 `fn() {main}` for inline assembly
67   --> $DIR/type-check-2.rs:66:31
68    |
69 LL |         asm!("{}", inout(reg) f);
70    |                               ^
71    |
72    = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
73
74 error: cannot use value of type `&mut i32` for inline assembly
75   --> $DIR/type-check-2.rs:69:31
76    |
77 LL |         asm!("{}", inout(reg) r);
78    |                               ^
79    |
80    = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
81
82 error: aborting due to 10 previous errors
83