11error: arguments for inline assembly must be copyable
2- --> $DIR/type-check-2.rs:48 :31
2+ --> $DIR/type-check-2.rs:46 :31
33 |
44LL | asm!("{:v}", in(vreg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `SimdNonCopy` does not implement the Copy trait
88
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
1111 |
1212LL | asm!("{}", in(reg) |x: i32| x);
1313 | ^^^^^^^^^^
1414 |
1515 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
1616
1717error: 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
1919 |
2020LL | asm!("{}", in(reg) vec![0]);
2121 | ^^^^^^^
@@ -24,48 +24,52 @@ LL | asm!("{}", in(reg) vec![0]);
2424 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
2525
2626error: 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
2828 |
2929LL | asm!("{}", in(reg) (1, 2, 3));
3030 | ^^^^^^^^^
3131 |
3232 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
3333
3434error: 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
3636 |
3737LL | asm!("{}", in(reg) [1, 2, 3]);
3838 | ^^^^^^^^^
3939 |
4040 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
4141
4242error: 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
4444 |
4545LL | asm!("{}", inout(reg) f);
4646 | ^
4747 |
4848 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
4949
5050error: 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
5252 |
5353LL | asm!("{}", inout(reg) r);
5454 | ^
5555 |
5656 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
5757
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
6060 |
6161LL | asm!("{}", sym C);
62- | ^
62+ | ^^^^^ is an `i32`
63+ |
64+ = help: `sym` operands must refer to either a function or a static
6365
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`
6671 |
67- LL | asm!("{}", sym x);
68- | ^
72+ = help: `sym` operands must refer to either a function or a static
6973
7074error[E0381]: use of possibly-uninitialized variable: `x`
7175 --> $DIR/type-check-2.rs:19:28
0 commit comments