diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-07-16 14:03:52 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-07-16 14:05:10 +1200 |
| commit | a32b0e7627ea31d1967568aa034f74a082de4bec (patch) | |
| tree | 815ab7c8d48ef171b95b6c35c1b9a2398d78a598 /tests | |
| parent | 018fa8545359b8580a89a1cdf79ed186c997ed41 (diff) | |
Fix some bugs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/source/struct_lits.rs | 4 | ||||
| -rw-r--r-- | tests/target/struct_lits.rs | 39 |
2 files changed, 19 insertions, 24 deletions
diff --git a/tests/source/struct_lits.rs b/tests/source/struct_lits.rs index b7e1a854b0b..f2726821e55 100644 --- a/tests/source/struct_lits.rs +++ b/tests/source/struct_lits.rs @@ -8,7 +8,9 @@ fn main() { Foo { a: foo() /* comment*/, /* comment*/ b: bar(), ..something }; - Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; + + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { // Comment diff --git a/tests/target/struct_lits.rs b/tests/target/struct_lits.rs index befeede14df..293a2a97b7a 100644 --- a/tests/target/struct_lits.rs +++ b/tests/target/struct_lits.rs @@ -13,33 +13,25 @@ fn main() { ..something }; - Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar() }; + + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: foo(), b: bar(), }; - Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { // Comment - a: foo(), /* C - * o - * m - * m - * e - * n - * t */ + Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { + // Comment + a: foo(), // Comment // Comment - b: bar(), /* C - * o - * m - * m - * e - * n - * t */ + b: bar(), /* Comment */ }; Foo { a: Bar, b: foo() }; - A { // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit - // amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante + A { + // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed + // sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante // hendrerit. Donec et mollis dolor. first: item(), // Praesent et diam eget libero egestas mattis sit amet vitae augue. @@ -47,11 +39,12 @@ fn main() { second: Item, }; - Diagram { // o This graph demonstrates how - // / \ significant whitespace is - // o o preserved. - // /|\ \ - // o o o o + Diagram { + // o This graph demonstrates how + // / \ significant whitespace is + // o o preserved. + // /|\ \ + // o o o o graph: G, } } |
