Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-init-in-fru.rs
blob: d7ec2ed75c85c5dae6724523e1d7d78a23208f26 [
file
] [
log
] [
blame
]
#[
derive
(
Clone
)]
struct
Point
{
x
:
isize
,
y
:
isize
,
}
fn
main
()
{
let
mut
origin
:
Point
;
origin
=
Point
{
x
:
10
,
..
origin
};
//~^ ERROR use of possibly-uninitialized variable: `origin` [E0381]
origin
.
clone
();
}