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
+10-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not s
7
7
= help: the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
8
8
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::cell::Cell<i32>`
9
9
= note: required because it appears within the type `[generator@$DIR/not-send-sync.rs:26:17: 30:6 a:&std::cell::Cell<i32> _]`
10
-
= note: required by `main::assert_send`
10
+
note: required by `main::assert_send`
11
+
--> $DIR/not-send-sync.rs:17:5
12
+
|
13
+
17 | fn assert_send<T: Send>(_: T) {}
14
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11
15
12
16
error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not satisfied in `[generator@$DIR/not-send-sync.rs:19:17: 23:6 (std::cell::Cell<i32>, ())]`
13
17
--> $DIR/not-send-sync.rs:19:5
@@ -18,7 +22,11 @@ error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not s
18
22
= help: within `[generator@$DIR/not-send-sync.rs:19:17: 23:6 (std::cell::Cell<i32>, ())]`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
19
23
= note: required because it appears within the type `(std::cell::Cell<i32>, ())`
20
24
= note: required because it appears within the type `[generator@$DIR/not-send-sync.rs:19:17: 23:6 (std::cell::Cell<i32>, ())]`
0 commit comments