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: src/test/ui/generator/not-send-sync.stderr
+1-2
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ LL | assert_send(|| {
11
11
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::cell::Cell<i32>`
12
12
= note: required because it appears within the type `[generator@$DIR/not-send-sync.rs:16:17: 20:6 a:&std::cell::Cell<i32> _]`
13
13
14
-
error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
14
+
error[E0277]: future cannot be shared between threads safely
15
15
--> $DIR/not-send-sync.rs:9:5
16
16
|
17
17
LL | fn assert_sync<T: Sync>(_: T) {}
@@ -21,7 +21,6 @@ LL | assert_sync(|| {
21
21
| ^^^^^^^^^^^ future returned by `main` is not `Sync`
22
22
|
23
23
= help: within `[generator@$DIR/not-send-sync.rs:9:17: 13:6 {std::cell::Cell<i32>, ()}]`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
24
-
= note: future cannot be shared between threads safely
25
24
note: future is not `Sync` as this value is used across an yield
0 commit comments