Make a span more useful

This commit is contained in:
Oli Scherer 2022-01-27 16:34:28 +00:00
parent 5518d1931d
commit 4d2e965106
2 changed files with 6 additions and 12 deletions

View file

@ -1,18 +1,11 @@
error[E0631]: type mismatch in generator arguments
--> $DIR/issue-88653.rs:9:5
|
LL | |bar| {
| ^----
| |
| _____found signature of `fn(bool) -> _`
| |
LL | |
LL | |
LL | |
... |
LL | | }
LL | | }
| |_____^ expected signature of `fn((bool,)) -> _`
LL | |bar| {
| ^^^^^
| |
| expected signature of `fn((bool,)) -> _`
| found signature of `fn(bool) -> _`
error: aborting due to previous error