| error: asm `const` arguments must be integer or floating-point values |
| --> $DIR/type-check-2.rs:41:26 |
| | |
| LL | asm!("{}", const 0 as *mut u8); |
| | ^^^^^^^^^^^^ |
| |
| error: asm `const` arguments must be integer or floating-point values |
| --> $DIR/type-check-2.rs:43:26 |
| | |
| LL | asm!("{}", const &0); |
| | ^^ |
| |
| error: arguments for inline assembly must be copyable |
| --> $DIR/type-check-2.rs:66:32 |
| | |
| LL | asm!("{}", in(xmm_reg) SimdNonCopy(0.0, 0.0, 0.0, 0.0)); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = note: `SimdNonCopy` does not implement the Copy trait |
| |
| error: cannot use value of type `[closure@$DIR/type-check-2.rs:78:28: 78:38]` for inline assembly |
| --> $DIR/type-check-2.rs:78:28 |
| | |
| LL | asm!("{}", in(reg) |x: i32| x); |
| | ^^^^^^^^^^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| |
| error: cannot use value of type `std::vec::Vec<i32>` for inline assembly |
| --> $DIR/type-check-2.rs:80:28 |
| | |
| LL | asm!("{}", in(reg) vec![0]); |
| | ^^^^^^^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error: cannot use value of type `(i32, i32, i32)` for inline assembly |
| --> $DIR/type-check-2.rs:82:28 |
| | |
| LL | asm!("{}", in(reg) (1, 2, 3)); |
| | ^^^^^^^^^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| |
| error: cannot use value of type `[i32; 3]` for inline assembly |
| --> $DIR/type-check-2.rs:84:28 |
| | |
| LL | asm!("{}", in(reg) [1, 2, 3]); |
| | ^^^^^^^^^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| |
| error: cannot use value of type `fn() {main}` for inline assembly |
| --> $DIR/type-check-2.rs:92:31 |
| | |
| LL | asm!("{}", inout(reg) f); |
| | ^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| |
| error: cannot use value of type `&mut i32` for inline assembly |
| --> $DIR/type-check-2.rs:95:31 |
| | |
| LL | asm!("{}", inout(reg) r); |
| | ^ |
| | |
| = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
| |
| error: asm `sym` operand must point to a fn or static |
| --> $DIR/type-check-2.rs:59:24 |
| | |
| LL | asm!("{}", sym C); |
| | ^ |
| |
| error: asm `sym` operand must point to a fn or static |
| --> $DIR/type-check-2.rs:61:24 |
| | |
| LL | asm!("{}", sym x); |
| | ^ |
| |
| error: argument 1 is required to be a constant |
| --> $DIR/type-check-2.rs:45:9 |
| | |
| LL | asm!("{}", const x); |
| | ^^^^^^^^^^^^^^^^^^^^ |
| |
| error: argument 1 is required to be a constant |
| --> $DIR/type-check-2.rs:48:9 |
| | |
| LL | asm!("{}", const const_foo(x)); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: argument 1 is required to be a constant |
| --> $DIR/type-check-2.rs:51:9 |
| | |
| LL | asm!("{}", const const_bar(x)); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error[E0381]: use of possibly-uninitialized variable: `x` |
| --> $DIR/type-check-2.rs:13:28 |
| | |
| LL | asm!("{}", in(reg) x); |
| | ^ use of possibly-uninitialized `x` |
| |
| error[E0381]: use of possibly-uninitialized variable: `y` |
| --> $DIR/type-check-2.rs:16:9 |
| | |
| LL | asm!("{}", inout(reg) y); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y` |
| |
| error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable |
| --> $DIR/type-check-2.rs:24:29 |
| | |
| LL | let v: Vec<u64> = vec![0, 1, 2]; |
| | - help: consider changing this to be mutable: `mut v` |
| LL | asm!("{}", in(reg) v[0]); |
| LL | asm!("{}", out(reg) v[0]); |
| | ^ cannot borrow as mutable |
| |
| error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable |
| --> $DIR/type-check-2.rs:26:31 |
| | |
| LL | let v: Vec<u64> = vec![0, 1, 2]; |
| | - help: consider changing this to be mutable: `mut v` |
| ... |
| LL | asm!("{}", inout(reg) v[0]); |
| | ^ cannot borrow as mutable |
| |
| error: aborting due to 18 previous errors |
| |
| Some errors have detailed explanations: E0381, E0596. |
| For more information about an error, try `rustc --explain E0381`. |