1
1
error: generator cannot be sent between threads safely
2
- --> $DIR/partial-drop.rs:12 :5
2
+ --> $DIR/partial-drop.rs:14 :5
3
3
|
4
4
LL | assert_send(|| {
5
5
| ^^^^^^^^^^^ generator is not `Send`
6
6
|
7
- = help: within `[generator@$DIR/partial-drop.rs:12 :17: 18 :6]`, the trait `Send` is not implemented for `Foo`
7
+ = help: within `[generator@$DIR/partial-drop.rs:14 :17: 20 :6]`, the trait `Send` is not implemented for `Foo`
8
8
note: generator is not `Send` as this value is used across a yield
9
- --> $DIR/partial-drop.rs:17 :9
9
+ --> $DIR/partial-drop.rs:19 :9
10
10
|
11
11
LL | let guard = Bar { foo: Foo, x: 42 };
12
12
| ----- has type `Bar` which is not `Send`
@@ -16,20 +16,20 @@ LL | yield;
16
16
LL | });
17
17
| - `guard` is later dropped here
18
18
note: required by a bound in `assert_send`
19
- --> $DIR/partial-drop.rs:40 :19
19
+ --> $DIR/partial-drop.rs:42 :19
20
20
|
21
21
LL | fn assert_send<T: Send>(_: T) {}
22
22
| ^^^^ required by this bound in `assert_send`
23
23
24
24
error: generator cannot be sent between threads safely
25
- --> $DIR/partial-drop.rs:20 :5
25
+ --> $DIR/partial-drop.rs:22 :5
26
26
|
27
27
LL | assert_send(|| {
28
28
| ^^^^^^^^^^^ generator is not `Send`
29
29
|
30
- = help: within `[generator@$DIR/partial-drop.rs:20 :17: 28 :6]`, the trait `Send` is not implemented for `Foo`
30
+ = help: within `[generator@$DIR/partial-drop.rs:22 :17: 30 :6]`, the trait `Send` is not implemented for `Foo`
31
31
note: generator is not `Send` as this value is used across a yield
32
- --> $DIR/partial-drop.rs:27 :9
32
+ --> $DIR/partial-drop.rs:29 :9
33
33
|
34
34
LL | let guard = Bar { foo: Foo, x: 42 };
35
35
| ----- has type `Bar` which is not `Send`
@@ -39,20 +39,20 @@ LL | yield;
39
39
LL | });
40
40
| - `guard` is later dropped here
41
41
note: required by a bound in `assert_send`
42
- --> $DIR/partial-drop.rs:40 :19
42
+ --> $DIR/partial-drop.rs:42 :19
43
43
|
44
44
LL | fn assert_send<T: Send>(_: T) {}
45
45
| ^^^^ required by this bound in `assert_send`
46
46
47
47
error: generator cannot be sent between threads safely
48
- --> $DIR/partial-drop.rs:30 :5
48
+ --> $DIR/partial-drop.rs:32 :5
49
49
|
50
50
LL | assert_send(|| {
51
51
| ^^^^^^^^^^^ generator is not `Send`
52
52
|
53
- = help: within `[generator@$DIR/partial-drop.rs:30 :17: 37 :6]`, the trait `Send` is not implemented for `Foo`
53
+ = help: within `[generator@$DIR/partial-drop.rs:32 :17: 39 :6]`, the trait `Send` is not implemented for `Foo`
54
54
note: generator is not `Send` as this value is used across a yield
55
- --> $DIR/partial-drop.rs:36 :9
55
+ --> $DIR/partial-drop.rs:38 :9
56
56
|
57
57
LL | let guard = Bar { foo: Foo, x: 42 };
58
58
| ----- has type `Bar` which is not `Send`
@@ -62,7 +62,7 @@ LL | yield;
62
62
LL | });
63
63
| - `guard` is later dropped here
64
64
note: required by a bound in `assert_send`
65
- --> $DIR/partial-drop.rs:40 :19
65
+ --> $DIR/partial-drop.rs:42 :19
66
66
|
67
67
LL | fn assert_send<T: Send>(_: T) {}
68
68
| ^^^^ required by this bound in `assert_send`
0 commit comments