1
- error: invalid `sym` operand
2
- --> $DIR/type-check-2.rs:38: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
1
error: arguments for inline assembly must be copyable
10
- --> $DIR/type-check-2.rs:43 :32
2
+ --> $DIR/type-check-2.rs:32 :32
11
3
|
12
4
LL | asm!("{}", in(xmm_reg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
13
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
6
|
15
7
= note: `SimdNonCopy` does not implement the Copy trait
16
8
17
- error: cannot use value of type `{closure@$DIR/type-check-2.rs:55 :28: 55 :36}` for inline assembly
18
- --> $DIR/type-check-2.rs:55 :28
9
+ error: cannot use value of type `{closure@$DIR/type-check-2.rs:44 :28: 44 :36}` for inline assembly
10
+ --> $DIR/type-check-2.rs:44 :28
19
11
|
20
12
LL | asm!("{}", in(reg) |x: i32| x);
21
13
| ^^^^^^^^^^
22
14
|
23
15
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
24
16
25
17
error: cannot use value of type `Vec<i32>` for inline assembly
26
- --> $DIR/type-check-2.rs:57 :28
18
+ --> $DIR/type-check-2.rs:46 :28
27
19
|
28
20
LL | asm!("{}", in(reg) vec![0]);
29
21
| ^^^^^^^
@@ -32,45 +24,37 @@ LL | asm!("{}", in(reg) vec![0]);
32
24
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
33
25
34
26
error: cannot use value of type `(i32, i32, i32)` for inline assembly
35
- --> $DIR/type-check-2.rs:59 :28
27
+ --> $DIR/type-check-2.rs:48 :28
36
28
|
37
29
LL | asm!("{}", in(reg) (1, 2, 3));
38
30
| ^^^^^^^^^
39
31
|
40
32
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
41
33
42
34
error: cannot use value of type `[i32; 3]` for inline assembly
43
- --> $DIR/type-check-2.rs:61 :28
35
+ --> $DIR/type-check-2.rs:50 :28
44
36
|
45
37
LL | asm!("{}", in(reg) [1, 2, 3]);
46
38
| ^^^^^^^^^
47
39
|
48
40
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
49
41
50
42
error: cannot use value of type `fn() {main}` for inline assembly
51
- --> $DIR/type-check-2.rs:69 :31
43
+ --> $DIR/type-check-2.rs:58 :31
52
44
|
53
45
LL | asm!("{}", inout(reg) f);
54
46
| ^
55
47
|
56
48
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
57
49
58
50
error: cannot use value of type `&mut i32` for inline assembly
59
- --> $DIR/type-check-2.rs:72 :31
51
+ --> $DIR/type-check-2.rs:61 :31
60
52
|
61
53
LL | asm!("{}", inout(reg) r);
62
54
| ^
63
55
|
64
56
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
65
57
66
- error: invalid `sym` operand
67
- --> $DIR/type-check-2.rs:36:20
68
- |
69
- LL | asm!("{}", sym C);
70
- | ^^^^^ is an `i32`
71
- |
72
- = help: `sym` operands must refer to either a function or a static
73
-
74
58
error[E0381]: used binding `x` isn't initialized
75
59
--> $DIR/type-check-2.rs:15:28
76
60
|
@@ -113,15 +97,7 @@ help: consider changing this to be mutable
113
97
LL | let mut v: Vec<u64> = vec![0, 1, 2];
114
98
| +++
115
99
116
- error: invalid `sym` operand
117
- --> $DIR/type-check-2.rs:89:19
118
- |
119
- LL | global_asm!("{}", sym C);
120
- | ^^^^^ is an `i32`
121
- |
122
- = help: `sym` operands must refer to either a function or a static
123
-
124
- error: aborting due to 13 previous errors
100
+ error: aborting due to 10 previous errors
125
101
126
102
Some errors have detailed explanations: E0381, E0596.
127
103
For more information about an error, try `rustc --explain E0381`.
0 commit comments