rust/src/test/ui/derives/deriving-no-inner-impl-error-message.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
2.1 KiB
Plaintext
Raw Normal View History

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
|
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
| ^^^^^^^^^^^^^^
|
note: an implementation of `PartialEq<_>` might be missing for `NoCloneOrEq`
--> $DIR/deriving-no-inner-impl-error-message.rs:1:1
|
LL | struct NoCloneOrEq;
| ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq<_>`
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `NoCloneOrEq` with `#[derive(PartialEq)]`
|
LL | #[derive(PartialEq)]
|
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
|
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
| ^^^^^^^^^^^^^^
|
note: an implementation of `PartialEq<_>` might be missing for `NoCloneOrEq`
--> $DIR/deriving-no-inner-impl-error-message.rs:1:1
|
LL | struct NoCloneOrEq;
| ^^^^^^^^^^^^^^^^^^^ must implement `PartialEq<_>`
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `NoCloneOrEq` with `#[derive(PartialEq)]`
|
LL | #[derive(PartialEq)]
|
2018-08-08 07:28:26 -05:00
error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/deriving-no-inner-impl-error-message.rs:10:5
2018-08-08 07:28:26 -05:00
|
LL | #[derive(Clone)]
| ----- in this derive macro expansion
LL | struct C {
2018-08-08 07:28:26 -05:00
LL | x: NoCloneOrEq
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq`
2018-08-08 07:28:26 -05: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)]`
|
LL | #[derive(Clone)]
|
2018-08-08 07:28:26 -05:00
error: aborting due to 3 previous errors
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`.