Skip to content

Commit bee9da1

Browse files
committed
Auto merge of rust-lang#98482 - cjgillot:short-struct-span-closure, r=estebank
Shorten def_span of closures to just their header Continuation of rust-lang#93967.
2 parents 5474f56 + 347d999 commit bee9da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/crashes/ice-6251.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
3333
| ^^^^^^^^^^^ expected `usize`, found closure
3434
|
3535
= note: expected type `usize`
36-
found closure `[closure@$DIR/ice-6251.rs:4:44: 4:55]`
36+
found closure `[closure@$DIR/ice-6251.rs:4:44: 4:53]`
3737

3838
error: aborting due to 4 previous errors
3939

0 commit comments

Comments
 (0)