about summary refs log tree commit diff
path: root/tests/ui/structs-enums/rec-auto.rs
blob: bf2e37a189bc8e858763ea3e0a888de2d0075d71 (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());
}