Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
uninit-empty-types.rs
blob: b59971b3498027cdfef01442e9e2d4cf8d6ff98f [
file
] [
log
] [
blame
]
// Test the uninit() construct returning various empty types.
// pretty-expanded FIXME #23616
use
std
::
mem
;
#[
derive
(
Clone
)]
struct
Foo
;
pub
fn
main
()
{
unsafe
{
let
_x
:
Foo
=
mem
::
uninitialized
();
let
_x
:
[
Foo
;
2
]
=
mem
::
uninitialized
();
}
}