]> git.lizzy.rs Git - rust.git/blob - tests/target/struct_lits.rs
Merge pull request #90 from marcusklaas/empty-imports
[rust.git] / tests / target / struct_lits.rs
1 // Struct literal expressions.
2
3 fn main() {
4     let x = Bar;
5
6     // Comment
7     let y = Foo { a: x };
8
9     Foo { a: Bar, b: foo() };
10
11     Foo { a: foo(), b: bar(), ..something };
12
13     Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar() };
14     Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(),
15                                                                                b: bar(), };
16
17     Fooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(),
18                                                              b: bar(),
19                                                              c: bar(),
20                                                              d: bar(),
21                                                              e: bar(),
22                                                              f: bar(),
23                                                              ..baz() };
24 }