adjust how closure/generator types and rvalues are printed
This commit is contained in:
parent
e4a361a48a
commit
c4ec12f4b7
191 changed files with 477 additions and 477 deletions
|
@ -1616,7 +1616,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
// | expected `()`, found closure
|
||||
// |
|
||||
// = note: expected unit type `()`
|
||||
// found closure `[closure@$DIR/issue-20862.rs:2:5: 2:14 x:_]`
|
||||
// found closure `{closure@$DIR/issue-20862.rs:2:5: 2:14 x:_}`
|
||||
//
|
||||
// Also ignore opaque `Future`s that come from async fns.
|
||||
if !self.ignore_span.overlaps(span)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue