Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
asm
/
issue-99122.rs
blob: e2675dc431d96b5dad5baa7d3dc82284aa8ad66c [
file
] [
log
] [
blame
] [
edit
]
//@ needs-asm-support
//@ only-x86_64
pub
unsafe
fn
test
()
{
let
pointer
=
1u32
as
*
const
_
;
//~^ ERROR cannot cast to a pointer of an unknown kind
core
::
arch
::
asm
!(
"nop"
,
in
(
"eax"
)
pointer
,
);
}
fn
main
()
{}