File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1274,8 +1274,8 @@ pub(crate) fn format_struct_struct(
1274
1274
1275
1275
let header_hi = struct_parts. ident . span . hi ( ) ;
1276
1276
let body_lo = if let Some ( generics) = struct_parts. generics {
1277
- // Adjust the span to start at the end of the generic arguments before searching for the '{'
1278
- let span = span. with_lo ( generics. span . hi ( ) ) ;
1277
+ // Adjust the span to start at the end of the where clause before searching for the '{'
1278
+ let span = span. with_lo ( generics. where_clause . span . hi ( ) ) ;
1279
1279
context. snippet_provider . span_after ( span, "{" )
1280
1280
} else {
1281
1281
context. snippet_provider . span_after ( span, "{" )
Original file line number Diff line number Diff line change
1
+ pub struct Arr
2
+ where
3
+ [ u8 ; { 10 / 2 } ] : Send , { }
You can’t perform that action at this time.
0 commit comments