fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `B<C>: Copy` is not satisfied 2 --> $DIR/deriving-copyclone.rs:31:26 3 | 4LL | is_copy(B { a: 1, b: C }); 5 | ------- ^ the trait `Copy` is not implemented for `B<C>` 6 | | 7 | required by a bound introduced by this call 8 | 9note: required for `B<C>` to implement `Copy` 10 --> $DIR/deriving-copyclone.rs:9:10 11 | 12LL | #[derive(Copy, Clone)] 13 | ^^^^ unsatisfied trait bound introduced in this `derive` macro 14note: required by a bound in `is_copy` 15 --> $DIR/deriving-copyclone.rs:18:15 16 | 17LL | fn is_copy<T: Copy>(_: T) {} 18 | ^^^^ required by this bound in `is_copy` 19 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 20help: consider borrowing here 21 | 22LL | is_copy(B { a: 1, b: &C }); 23 | + 24 25error[E0277]: the trait bound `B<C>: Clone` is not satisfied 26 --> $DIR/deriving-copyclone.rs:32:27 27 | 28LL | is_clone(B { a: 1, b: C }); 29 | -------- ^ the trait `Clone` is not implemented for `B<C>` 30 | | 31 | required by a bound introduced by this call 32 | 33note: required for `B<C>` to implement `Clone` 34 --> $DIR/deriving-copyclone.rs:9:16 35 | 36LL | #[derive(Copy, Clone)] 37 | ^^^^^ unsatisfied trait bound introduced in this `derive` macro 38note: required by a bound in `is_clone` 39 --> $DIR/deriving-copyclone.rs:19:16 40 | 41LL | fn is_clone<T: Clone>(_: T) {} 42 | ^^^^^ required by this bound in `is_clone` 43 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) 44help: consider borrowing here 45 | 46LL | is_clone(B { a: 1, b: &C }); 47 | + 48 49error[E0277]: the trait bound `B<D>: Copy` is not satisfied 50 --> $DIR/deriving-copyclone.rs:35:26 51 | 52LL | is_copy(B { a: 1, b: D }); 53 | ------- ^ the trait `Copy` is not implemented for `B<D>` 54 | | 55 | required by a bound introduced by this call 56 | 57note: required for `B<D>` to implement `Copy` 58 --> $DIR/deriving-copyclone.rs:9:10 59 | 60LL | #[derive(Copy, Clone)] 61 | ^^^^ unsatisfied trait bound introduced in this `derive` macro 62note: required by a bound in `is_copy` 63 --> $DIR/deriving-copyclone.rs:18:15 64 | 65LL | fn is_copy<T: Copy>(_: T) {} 66 | ^^^^ required by this bound in `is_copy` 67 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 68help: consider borrowing here 69 | 70LL | is_copy(B { a: 1, b: &D }); 71 | + 72 73error: aborting due to 3 previous errors 74 75For more information about this error, try `rustc --explain E0277`.