]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs-enums/rec-auto.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.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 }