Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
raw-ptr-temp-const.rs
blob: deb51cd505c7a95161c01c690bfd57169f3211fd [
file
] [
log
] [
blame
] [
edit
]
// A variant of raw-ptr-const that directly constructs a raw pointer.
const
CONST_RAW
:
*
const
Vec
<
i32
>
=
std
::
ptr
::
addr_of
!(
Vec
::
new
());
//~^ ERROR cannot take address of a temporary
fn
main
()
{}