1 error[E0277]: the trait bound `[static generator@$DIR/clone-impl-static.rs:7:15: 7:29]: Copy` is not satisfied
2 --> $DIR/clone-impl-static.rs:10:16
5 | ---------- ^^^^ the trait `Copy` is not implemented for `[static generator@$DIR/clone-impl-static.rs:7:15: 7:29]`
7 | required by a bound introduced by this call
9 note: required by a bound in `check_copy`
10 --> $DIR/clone-impl-static.rs:16:18
12 LL | fn check_copy<T: Copy>(_x: &T) {}
13 | ^^^^ required by this bound in `check_copy`
15 error[E0277]: the trait bound `[static generator@$DIR/clone-impl-static.rs:7:15: 7:29]: Clone` is not satisfied
16 --> $DIR/clone-impl-static.rs:12:17
18 LL | check_clone(&gen);
19 | ----------- ^^^^ the trait `Clone` is not implemented for `[static generator@$DIR/clone-impl-static.rs:7:15: 7:29]`
21 | required by a bound introduced by this call
23 note: required by a bound in `check_clone`
24 --> $DIR/clone-impl-static.rs:17:19
26 LL | fn check_clone<T: Clone>(_x: &T) {}
27 | ^^^^^ required by this bound in `check_clone`
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0277`.