rust/src/test/ui/derives/deriving-copyclone.stderr

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: the trait bound `C: std::marker::Copy` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:31:5
2018-08-08 07:28:26 -05:00
|
LL | fn is_copy<T: Copy>(_: T) {}
| ------------------------- required by `is_copy`
...
2019-03-09 06:03:44 -06:00
LL | is_copy(B { a: 1, b: C });
2018-08-08 07:28:26 -05:00
| ^^^^^^^ the trait `std::marker::Copy` is not implemented for `C`
|
= note: required because of the requirements on the impl of `std::marker::Copy` for `B<C>`
error[E0277]: the trait bound `C: std::clone::Clone` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:32:5
2018-08-08 07:28:26 -05:00
|
LL | fn is_clone<T: Clone>(_: T) {}
| --------------------------- required by `is_clone`
...
2019-03-09 06:03:44 -06:00
LL | is_clone(B { a: 1, b: C });
2018-08-08 07:28:26 -05:00
| ^^^^^^^^ the trait `std::clone::Clone` is not implemented for `C`
|
= note: required because of the requirements on the impl of `std::clone::Clone` for `B<C>`
error[E0277]: the trait bound `D: std::marker::Copy` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:35:5
2018-08-08 07:28:26 -05:00
|
LL | fn is_copy<T: Copy>(_: T) {}
| ------------------------- required by `is_copy`
...
2019-03-09 06:03:44 -06:00
LL | is_copy(B { a: 1, b: D });
2018-08-08 07:28:26 -05:00
| ^^^^^^^ the trait `std::marker::Copy` is not implemented for `D`
|
= note: required because of the requirements on the impl of `std::marker::Copy` for `B<D>`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0277`.