Skip to content

Commit

Permalink
Auto merge of rust-lang#98482 - cjgillot:short-struct-span-closure, r…
Browse files Browse the repository at this point in the history
…=estebank

Shorten def_span of closures to just their header

Continuation of rust-lang#93967.
  • Loading branch information
bors committed Jul 8, 2022
2 parents 5474f56 + 347d999 commit bee9da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/crashes/ice-6251.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
| ^^^^^^^^^^^ expected `usize`, found closure
|
= note: expected type `usize`
found closure `[closure@$DIR/ice-6251.rs:4:44: 4:55]`
found closure `[closure@$DIR/ice-6251.rs:4:44: 4:53]`

error: aborting due to 4 previous errors

Expand Down

0 comments on commit bee9da1

Please sign in to comment.