]> git.proxmox.com Git - rustc.git/blob - src/test/ui/structs-enums/rec-auto.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / structs-enums / rec-auto.rs
1 // run-pass
2
3
4
5
6 // Issue #50.
7
8 struct X { foo: String, bar: String }
9
10 pub fn main() {
11 let x = X {foo: "hello".to_string(), bar: "world".to_string()};
12 println!("{}", x.foo.clone());
13 println!("{}", x.bar.clone());
14 }