11error: generator cannot be sent between threads safely
2- --> $DIR/partial-drop.rs:12 :5
2+ --> $DIR/partial-drop.rs:14 :5
33 |
44LL | assert_send(|| {
55 | ^^^^^^^^^^^ generator is not `Send`
66 |
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`
88note: 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
1010 |
1111LL | let guard = Bar { foo: Foo, x: 42 };
1212 | ----- has type `Bar` which is not `Send`
@@ -16,20 +16,20 @@ LL | yield;
1616LL | });
1717 | - `guard` is later dropped here
1818note: required by a bound in `assert_send`
19- --> $DIR/partial-drop.rs:40 :19
19+ --> $DIR/partial-drop.rs:42 :19
2020 |
2121LL | fn assert_send<T: Send>(_: T) {}
2222 | ^^^^ required by this bound in `assert_send`
2323
2424error: generator cannot be sent between threads safely
25- --> $DIR/partial-drop.rs:20 :5
25+ --> $DIR/partial-drop.rs:22 :5
2626 |
2727LL | assert_send(|| {
2828 | ^^^^^^^^^^^ generator is not `Send`
2929 |
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`
3131note: 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
3333 |
3434LL | let guard = Bar { foo: Foo, x: 42 };
3535 | ----- has type `Bar` which is not `Send`
@@ -39,20 +39,20 @@ LL | yield;
3939LL | });
4040 | - `guard` is later dropped here
4141note: required by a bound in `assert_send`
42- --> $DIR/partial-drop.rs:40 :19
42+ --> $DIR/partial-drop.rs:42 :19
4343 |
4444LL | fn assert_send<T: Send>(_: T) {}
4545 | ^^^^ required by this bound in `assert_send`
4646
4747error: generator cannot be sent between threads safely
48- --> $DIR/partial-drop.rs:30 :5
48+ --> $DIR/partial-drop.rs:32 :5
4949 |
5050LL | assert_send(|| {
5151 | ^^^^^^^^^^^ generator is not `Send`
5252 |
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`
5454note: 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
5656 |
5757LL | let guard = Bar { foo: Foo, x: 42 };
5858 | ----- has type `Bar` which is not `Send`
@@ -62,7 +62,7 @@ LL | yield;
6262LL | });
6363 | - `guard` is later dropped here
6464note: required by a bound in `assert_send`
65- --> $DIR/partial-drop.rs:40 :19
65+ --> $DIR/partial-drop.rs:42 :19
6666 |
6767LL | fn assert_send<T: Send>(_: T) {}
6868 | ^^^^ required by this bound in `assert_send`
0 commit comments