Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
ui
/
structs-enums
/
rec-auto.rs
blob: c2ef13ede4cf31e9b9241bb4f2f5e90e6a2bc070 [
file
] [
log
] [
blame
]
// run-pass
// Issue #50.
struct
X
{
foo
:
String
,
bar
:
String
}
pub
fn
main
()
{
let
x
=
X
{
foo
:
"hello"
.
to_string
(),
bar
:
"world"
.
to_string
()};
println
!(
"{}"
,
x
.
foo
.
clone
());
println
!(
"{}"
,
x
.
bar
.
clone
());
}