1 // rustfmt-normalize_comments: true
2 // rustfmt-wrap_comments: true
3 // Struct literal expressions.
18 Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo { a: f(), b: b() };
20 Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo {
25 Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo {
32 Foo { a: Bar, b: f() };
42 // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit
43 // amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante
44 // hendrerit. Donec et mollis dolor.
46 // Praesent et diam eget libero egestas mattis sit amet vitae augue.
47 // Nam tincidunt congue enim, ut porta lorem lacinia consectetur.
51 Some(Data::MethodCallData(MethodCallData {
52 span: sub_span.unwrap(),
53 scope: self.enclosing_scope(id),
55 decl_id: Some(decl_id),
59 // o This graph demonstrates how
60 // / \ significant whitespace is
69 TagTerminatedByteMatcher {
70 matcher: ByteMatcher {
72 mask: b"\xFF\xDF\xDF\xDF\xDF\xFF",
81 let foo = Foo::<i64> { memb: 10 };
85 let s = S { a: 0, ..b };
89 let s = S { a: S2 { ..c }, ..b };
108 Foo { a: 1, b: f(2) };
114 LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct {
117 IntrinsicISizesContribution {
118 content_intrinsic_sizes: IntrinsicISizes {
119 minimum_inline_size: 0,
125 Foo { a: b, c: d, e: f };
134 a: ddddddddddddddddddddd,
135 b: cccccccccccccccccccccccccccccccccccccc,
153 d: dddddddddd, // a comment
160 ffffffffffffffffffffffffffields: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
163 ffffffffffffffffffffffffffields:
164 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
170 MyStruct { /* a comment */ };
177 fn field_init_shorthand() {
178 MyStruct { x, y, z };
179 MyStruct { x, y, z, ..base };
184 dddddddddd, // a comment
188 ffffffffffffffffffffffffffieldsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,