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

43 lines
1.5 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
|
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>`
note: required by `is_copy`
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:18:1
2018-08-08 07:28:26 -05:00
|
LL | fn is_copy<T: Copy>(_: T) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
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
|
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>`
note: required by `is_clone`
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:19:1
2018-08-08 07:28:26 -05:00
|
LL | fn is_clone<T: Clone>(_: T) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
|
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>`
note: required by `is_copy`
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-copyclone.rs:18:1
2018-08-08 07:28:26 -05:00
|
LL | fn is_copy<T: Copy>(_: T) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0277`.