2018-08-08 07:28:26 -05:00
|
|
|
error[E0369]: binary operation `==` cannot be applied to type `NoCloneOrEq`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deriving-no-inner-impl-error-message.rs:5:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[derive(PartialEq)]
|
|
|
|
| --------- in this derive macro expansion
|
|
|
|
LL | struct E {
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x: NoCloneOrEq
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-26 19:57:13 -05:00
|
|
|
note: an implementation of `PartialEq` might be missing for `NoCloneOrEq`
|
2021-09-28 09:48:54 -05:00
|
|
|
--> $DIR/deriving-no-inner-impl-error-message.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct NoCloneOrEq;
|
2023-04-26 19:57:13 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-09-28 09:48:54 -05:00
|
|
|
help: consider annotating `NoCloneOrEq` with `#[derive(PartialEq)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(PartialEq)]
|
|
|
|
LL | struct NoCloneOrEq;
|
2021-09-28 09:48:54 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied
|
2022-06-22 01:11:14 -05:00
|
|
|
--> $DIR/deriving-no-inner-impl-error-message.rs:9:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[derive(Clone)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct C {
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | x: NoCloneOrEq
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 09:58:45 -05:00
|
|
|
help: consider annotating `NoCloneOrEq` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct NoCloneOrEq;
|
2022-03-31 09:58:45 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-06-22 01:11:14 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0277, E0369.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0277`.
|