1 error: invalid `sym` operand
2 --> $DIR/type-check-2.rs:35:24
4 LL | asm!("{}", sym x);
5 | ^ is a local variable
7 = help: `sym` operands must refer to either a function or a static
9 error: invalid `sym` operand
10 --> $DIR/type-check-2.rs:86:19
12 LL | global_asm!("{}", sym C);
15 = help: `sym` operands must refer to either a function or a static
17 error: invalid `sym` operand
18 --> $DIR/type-check-2.rs:33:20
20 LL | asm!("{}", sym C);
23 = help: `sym` operands must refer to either a function or a static
25 error: arguments for inline assembly must be copyable
26 --> $DIR/type-check-2.rs:40:32
28 LL | asm!("{}", in(xmm_reg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 = note: `SimdNonCopy` does not implement the Copy trait
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
36 LL | asm!("{}", in(reg) |x: i32| x);
39 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
41 error: cannot use value of type `Vec<i32>` for inline assembly
42 --> $DIR/type-check-2.rs:54:28
44 LL | asm!("{}", in(reg) vec![0]);
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)
50 error: cannot use value of type `(i32, i32, i32)` for inline assembly
51 --> $DIR/type-check-2.rs:56:28
53 LL | asm!("{}", in(reg) (1, 2, 3));
56 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
58 error: cannot use value of type `[i32; 3]` for inline assembly
59 --> $DIR/type-check-2.rs:58:28
61 LL | asm!("{}", in(reg) [1, 2, 3]);
64 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
66 error: cannot use value of type `fn() {main}` for inline assembly
67 --> $DIR/type-check-2.rs:66:31
69 LL | asm!("{}", inout(reg) f);
72 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
74 error: cannot use value of type `&mut i32` for inline assembly
75 --> $DIR/type-check-2.rs:69:31
77 LL | asm!("{}", inout(reg) r);
80 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
82 error: aborting due to 10 previous errors