]> git.proxmox.com Git - rustc.git/blob - src/test/ui/derives/deriving-no-inner-impl-error-message.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / derives / deriving-no-inner-impl-error-message.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `NoCloneOrEq`
2 --> $DIR/deriving-no-inner-impl-error-message.rs:5:5
3 |
4 LL | #[derive(PartialEq)]
5 | --------- in this derive macro expansion
6 LL | struct E {
7 LL | x: NoCloneOrEq
8 | ^^^^^^^^^^^^^^
9 |
10 note: an implementation of `PartialEq<_>` might be missing for `NoCloneOrEq`
11 --> $DIR/deriving-no-inner-impl-error-message.rs:1:1
12 |
13 LL | struct NoCloneOrEq;
14 | ^^^^^^^^^^^^^^^^^^ must implement `PartialEq<_>`
15 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
16 help: consider annotating `NoCloneOrEq` with `#[derive(PartialEq)]`
17 |
18 LL | #[derive(PartialEq)]
19 |
20
21 error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied
22 --> $DIR/deriving-no-inner-impl-error-message.rs:9:5
23 |
24 LL | #[derive(Clone)]
25 | ----- in this derive macro expansion
26 LL | struct C {
27 LL | x: NoCloneOrEq
28 | ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq`
29 |
30 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
31 help: consider annotating `NoCloneOrEq` with `#[derive(Clone)]`
32 |
33 LL | #[derive(Clone)]
34 |
35
36 error: aborting due to 2 previous errors
37
38 Some errors have detailed explanations: E0277, E0369.
39 For more information about an error, try `rustc --explain E0277`.