]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/clone-impl-static.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / generator / clone-impl-static.stderr
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
3    |
4 LL |     check_copy(&gen);
5    |     ---------- ^^^^ the trait `Copy` is not implemented for `[static generator@$DIR/clone-impl-static.rs:7:15: 7:29]`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required by a bound in `check_copy`
10   --> $DIR/clone-impl-static.rs:16:18
11    |
12 LL | fn check_copy<T: Copy>(_x: &T) {}
13    |                  ^^^^ required by this bound in `check_copy`
14
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
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]`
20    |     |
21    |     required by a bound introduced by this call
22    |
23 note: required by a bound in `check_clone`
24   --> $DIR/clone-impl-static.rs:17:19
25    |
26 LL | fn check_clone<T: Clone>(_x: &T) {}
27    |                   ^^^^^ required by this bound in `check_clone`
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0277`.