fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB31 linesraw
1error[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   |
4LL |     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   |
9note: required by a bound in `check_copy`
10  --> $DIR/clone-impl-static.rs:16:18
11   |
12LL | fn check_copy<T: Copy>(_x: &T) {}
13   |                  ^^^^ required by this bound in `check_copy`
14
15error[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   |
18LL |     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   |
23note: required by a bound in `check_clone`
24  --> $DIR/clone-impl-static.rs:17:19
25   |
26LL | fn check_clone<T: Clone>(_x: &T) {}
27   |                   ^^^^^ required by this bound in `check_clone`
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0277`.