1
Fork 0
rust/tests/ui/asm/conditionally-sized-ptr-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
606 B
Text
Raw Permalink Normal View History

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