11error: arguments for inline assembly must be copyable
2- --> $DIR/type-check-2.rs:32 :32
2+ --> $DIR/type-check-2.rs:36 :32
33 |
44LL | asm!("{}", in(xmm_reg) 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:44 :28: 44 :36}` for inline assembly
10- --> $DIR/type-check-2.rs:44 :28
9+ error: cannot use value of type `{closure@$DIR/type-check-2.rs:48 :28: 48 :36}` for inline assembly
10+ --> $DIR/type-check-2.rs:48 :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:46 :28
18+ --> $DIR/type-check-2.rs:50 :28
1919 |
2020LL | asm!("{}", in(reg) vec![0]);
2121 | ^^^^^^^
@@ -24,31 +24,31 @@ 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:48 :28
27+ --> $DIR/type-check-2.rs:52 :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:50 :28
35+ --> $DIR/type-check-2.rs:54 :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:58 :31
43+ --> $DIR/type-check-2.rs:62 :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:61 :31
51+ --> $DIR/type-check-2.rs:65 :31
5252 |
5353LL | asm!("{}", inout(reg) r);
5454 | ^
0 commit comments