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