Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
structs-enums
/
functional-struct-upd.rs
blob: 51c6b6d7e4ffe236994a6bec788cf33ec883dc7a [
file
] [
log
] [
blame
]
// run-pass
#[
derive
(
Debug
)]
struct
Foo
{
x
:
isize
,
y
:
isize
}
pub
fn
main
()
{
let
a
=
Foo
{
x
:
1
,
y
:
2
};
let
c
=
Foo
{
x
:
4
,
..
a
};
println
!(
"{:?}"
,
c
);
}