1 error: invalid `sym` operand
2 --> $DIR/type-check-2.rs:75:19
4 LL | global_asm!("{}", sym C);
7 = help: `sym` operands must refer to either a function or a static
9 error: invalid `sym` operand
10 --> $DIR/type-check-2.rs:24:20
12 LL | asm!("{}", sym C);
15 = help: `sym` operands must refer to either a function or a static
17 error: arguments for inline assembly must be copyable
18 --> $DIR/type-check-2.rs:29:31
20 LL | asm!("{:v}", in(vreg) SimdNonCopy(0.0, 0.0, 0.0, 0.0));
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 = note: `SimdNonCopy` does not implement the Copy trait
25 error: cannot use value of type `[closure@$DIR/type-check-2.rs:41:28: 41:36]` for inline assembly
26 --> $DIR/type-check-2.rs:41:28
28 LL | asm!("{}", in(reg) |x: i32| x);
31 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
33 error: cannot use value of type `Vec<i32>` for inline assembly
34 --> $DIR/type-check-2.rs:43:28
36 LL | asm!("{}", in(reg) vec![0]);
39 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
40 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
42 error: cannot use value of type `(i32, i32, i32)` for inline assembly
43 --> $DIR/type-check-2.rs:45:28
45 LL | asm!("{}", in(reg) (1, 2, 3));
48 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
50 error: cannot use value of type `[i32; 3]` for inline assembly
51 --> $DIR/type-check-2.rs:47: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 `fn() {main}` for inline assembly
59 --> $DIR/type-check-2.rs:55:31
61 LL | asm!("{}", inout(reg) f);
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 `&mut i32` for inline assembly
67 --> $DIR/type-check-2.rs:58:31
69 LL | asm!("{}", inout(reg) r);
72 = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
74 error: aborting due to 9 previous errors