1
Fork 0
rust/tests/ui/asm/conditionally-sized-ptr-fail.stderr
2025-02-24 16:20:50 +00:00

18 lines
606 B
Text

error: cannot use value of unsized pointer type `*mut T` for inline assembly
--> $DIR/conditionally-sized-ptr-fail.rs:7:34
|
LL | asm!("/* {} */", in(reg) p);
| ^
|
= note: only sized pointers can be used in inline assembly
error: cannot use value of unsized pointer type `*mut [u8]` for inline assembly
--> $DIR/conditionally-sized-ptr-fail.rs:14:34
|
LL | asm!("/* {} */", in(reg) p);
| ^
|
= note: only sized pointers can be used in inline assembly
error: aborting due to 2 previous errors