2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`
|
|
|
|
--> $DIR/clone-impl.rs:50:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`
|
2022-09-11 01:21:40 -05:00
|
|
|
...
|
|
|
|
LL | check_copy(&gen_clone_0);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`, the trait `Copy` is not implemented for `Vec<u32>`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
note: captured value does not implement `Copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:48:14
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | drop(clonable_0);
|
|
|
|
| ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
|
|
|
|
note: required by a bound in `check_copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:90:18
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_copy<T: Copy>(_x: &T) {}
|
|
|
|
| ^^^^ required by this bound in `check_copy`
|
|
|
|
|
2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`
|
|
|
|
--> $DIR/clone-impl.rs:50:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`
|
2022-09-11 01:21:40 -05:00
|
|
|
...
|
|
|
|
LL | check_copy(&gen_clone_0);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:44:5: 44:12}`, the trait `Copy` is not implemented for `Vec<char>`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
note: coroutine does not implement `Copy` as this value is used across a yield
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:46:9
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | let v = vec!['a'];
|
|
|
|
| - has type `Vec<char>` which does not implement `Copy`
|
|
|
|
LL | yield;
|
|
|
|
| ^^^^^ yield occurs here, with `v` maybe used later
|
|
|
|
note: required by a bound in `check_copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:90:18
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_copy<T: Copy>(_x: &T) {}
|
|
|
|
| ^^^^ required by this bound in `check_copy`
|
|
|
|
|
2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`
|
|
|
|
--> $DIR/clone-impl.rs:71:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`
|
2022-09-11 01:21:40 -05:00
|
|
|
...
|
|
|
|
LL | check_copy(&gen_clone_1);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`, the trait `Copy` is not implemented for `Vec<u32>`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
note: captured value does not implement `Copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:69:14
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | drop(clonable_1);
|
|
|
|
| ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
|
|
|
|
note: required by a bound in `check_copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:90:18
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_copy<T: Copy>(_x: &T) {}
|
|
|
|
| ^^^^ required by this bound in `check_copy`
|
|
|
|
|
2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`
|
|
|
|
--> $DIR/clone-impl.rs:71:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`
|
2022-09-11 01:21:40 -05:00
|
|
|
...
|
|
|
|
LL | check_copy(&gen_clone_1);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:59:5: 59:12}`, the trait `Copy` is not implemented for `Vec<char>`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
note: coroutine does not implement `Copy` as this value is used across a yield
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:65:9
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | let v = vec!['a'];
|
|
|
|
| - has type `Vec<char>` which does not implement `Copy`
|
|
|
|
...
|
|
|
|
LL | yield;
|
|
|
|
| ^^^^^ yield occurs here, with `v` maybe used later
|
|
|
|
note: required by a bound in `check_copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:90:18
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_copy<T: Copy>(_x: &T) {}
|
|
|
|
| ^^^^ required by this bound in `check_copy`
|
|
|
|
|
2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `NonClone: Copy` is not satisfied in `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`
|
|
|
|
--> $DIR/clone-impl.rs:84:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`
|
2022-09-11 01:21:40 -05:00
|
|
|
...
|
|
|
|
LL | check_copy(&gen_non_clone);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`, the trait `Copy` is not implemented for `NonClone`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
note: captured value does not implement `Copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:82:14
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | drop(non_clonable);
|
|
|
|
| ^^^^^^^^^^^^ has type `NonClone` which does not implement `Copy`
|
|
|
|
note: required by a bound in `check_copy`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:90:18
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_copy<T: Copy>(_x: &T) {}
|
|
|
|
| ^^^^ required by this bound in `check_copy`
|
2022-04-10 02:28:31 -05:00
|
|
|
help: consider annotating `NonClone` with `#[derive(Copy)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Copy)]
|
|
|
|
LL | struct NonClone;
|
2022-04-10 02:28:31 -05:00
|
|
|
|
|
2022-03-21 00:57:10 -05:00
|
|
|
|
2024-10-25 00:11:42 -05:00
|
|
|
error[E0277]: the trait bound `NonClone: Clone` is not satisfied in `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`
|
|
|
|
--> $DIR/clone-impl.rs:86:5
|
2022-09-11 01:21:40 -05:00
|
|
|
|
|
2024-04-11 08:15:34 -05:00
|
|
|
LL | move || {
|
2024-10-25 00:11:42 -05:00
|
|
|
| ------- within this `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`
|
2022-03-21 00:57:10 -05:00
|
|
|
...
|
2022-09-11 01:21:40 -05:00
|
|
|
LL | check_clone(&gen_non_clone);
|
2024-10-25 00:11:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `{coroutine@$DIR/clone-impl.rs:80:5: 80:12}`, the trait `Clone` is not implemented for `NonClone`
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
note: captured value does not implement `Clone`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:82:14
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | drop(non_clonable);
|
|
|
|
| ^^^^^^^^^^^^ has type `NonClone` which does not implement `Clone`
|
|
|
|
note: required by a bound in `check_clone`
|
2024-10-25 00:11:42 -05:00
|
|
|
--> $DIR/clone-impl.rs:91:19
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
|
LL | fn check_clone<T: Clone>(_x: &T) {}
|
|
|
|
| ^^^^^ required by this bound in `check_clone`
|
2022-04-10 02:28:31 -05:00
|
|
|
help: consider annotating `NonClone` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct NonClone;
|
2022-04-10 02:28:31 -05:00
|
|
|
|
|
2022-03-21 00:57:10 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|