You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/async-await/async-closures/def-path.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ LL | let x = async || {};
5
5
| -- the expected `async` closure body
6
6
LL |
7
7
LL | let () = x();
8
-
| ^^ --- this expression has type `{static main::{closure#0}::{closure#0}<?17t> upvar_tys=?16t witness=?6t}`
8
+
| ^^ --- this expression has type `{static main::{closure#0}::{closure#0}<?17t> upvar_tys=?16t resume_ty=ResumeTy yield_ty=() return_ty=() witness=?6t}`
9
9
| |
10
10
| expected `async` closure body, found `()`
11
11
|
12
-
= note: expected `async` closure body `{static main::{closure#0}::{closure#0}<?17t> upvar_tys=?16t witness=?6t}`
Copy file name to clipboardExpand all lines: tests/ui/coroutine/print/coroutine-print-verbose-2.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ LL | | drop(a);
9
9
LL | | });
10
10
| |______^ coroutine is not `Sync`
11
11
|
12
-
= help: within `{main::{closure#0} upvar_tys=() witness={main::{closure#0}}}`, the trait `Sync` is not implemented for `NotSync`
12
+
= help: within `{main::{closure#0} upvar_tys=() resume_ty=() yield_ty=() return_ty=() witness={main::{closure#0}}}`, the trait `Sync` is not implemented for `NotSync`
13
13
note: coroutine is not `Sync` as this value is used across a yield
14
14
--> $DIR/coroutine-print-verbose-2.rs:20:9
15
15
|
@@ -34,7 +34,7 @@ LL | | drop(a);
34
34
LL | | });
35
35
| |______^ coroutine is not `Send`
36
36
|
37
-
= help: within `{main::{closure#1} upvar_tys=() witness={main::{closure#1}}}`, the trait `Send` is not implemented for `NotSend`
37
+
= help: within `{main::{closure#1} upvar_tys=() resume_ty=() yield_ty=() return_ty=() witness={main::{closure#1}}}`, the trait `Send` is not implemented for `NotSend`
38
38
note: coroutine is not `Send` as this value is used across a yield
0 commit comments