@@ -22,23 +22,22 @@ help: consider cloning the value if the performance cost is acceptable
2222LL | let mut h = copy(g.clone());
2323 | ++++++++
2424
25- error[E0277]: the trait bound `Box<(i32, ())>: Copy` is not satisfied in `{coroutine@$DIR/issue-105084.rs:16:5: 16:7}`
25+ error[E0277]: the trait bound `Box<MaybeUninit< (i32, ())> >: Copy` is not satisfied in `{coroutine@$DIR/issue-105084.rs:16:5: 16:7}`
2626 --> $DIR/issue-105084.rs:32:17
2727 |
2828LL | || {
2929 | -- within this `{coroutine@$DIR/issue-105084.rs:16:5: 16:7}`
3030...
3131LL | let mut h = copy(g);
32- | ^^^^^^^ within `{coroutine@$DIR/issue-105084.rs:16:5: 16:7}`, the trait `Copy` is not implemented for `Box<(i32, ())>`
32+ | ^^^^^^^ within `{coroutine@$DIR/issue-105084.rs:16:5: 16:7}`, the trait `Copy` is not implemented for `Box<MaybeUninit< (i32, ())> >`
3333 |
3434note: coroutine does not implement `Copy` as this value is used across a yield
35- --> $DIR/issue-105084.rs:22:41
35+ --> $DIR/issue-105084.rs:22:54
3636 |
37- LL | let t = std::boxed::box_new((5, yield));
38- | ------------------------^^^^^--
39- | | |
40- | | yield occurs here, with `std::boxed::box_new((5, yield))` maybe used later
41- | has type `Box<(i32, ())>` which does not implement `Copy`
37+ LL | let t = std::boxed::init_box_via_move(t, (5, yield));
38+ | - ^^^^^ yield occurs here, with `t` maybe used later
39+ | |
40+ | has type `Box<MaybeUninit<(i32, ())>>` which does not implement `Copy`
4241note: required by a bound in `copy`
4342 --> $DIR/issue-105084.rs:10:12
4443 |
0 commit comments