Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-partial-reinit-3.rs
blob: c7fbd7fc8813533394f4236afc89939e775e36c6 [
file
] [
log
] [
blame
]
use
std
::
mem
;
struct
Test
{
f
:
usize
}
impl
Drop
for
Test
{
fn
drop
(&
mut
self
)
{}
}
fn
main
()
{
let
mut
x
=
(
Test
{
f
:
2
},
Test
{
f
:
4
});
mem
::
drop
(
x
.
0
);
x
.
0.f
=
3
;
//~^ ERROR partial reinitialization of uninitialized structure `x.0`
}