Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
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
();
}