Commit 7bb2d8b
committed
Slightly clean up the error for recursive
* Make it clear that type erasure is required, not just pointer
indirection.
* Don't make the message specific to direct recursion.async fn
1 parent 4295eea commit 7bb2d8b
File tree
2 files changed
+4
-4
lines changed- src
- librustc_typeck/check
- test/ui/async-await
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1420 | 1420 | | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | | - | |
1424 | | - | |
| 1423 | + | |
| 1424 | + | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments