blob: c2ef13ede4cf31e9b9241bb4f2f5e90e6a2bc070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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());
}
|