fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0369]: binary operation `==` cannot be applied to type `NoCloneOrEq` 2 --> $DIR/deriving-no-inner-impl-error-message.rs:5:5 3 | 4LL | #[derive(PartialEq)] 5 | --------- in this derive macro expansion 6LL | struct E { 7LL | x: NoCloneOrEq 8 | ^^^^^^^^^^^^^^ 9 | 10note: an implementation of `PartialEq` might be missing for `NoCloneOrEq` 11 --> $DIR/deriving-no-inner-impl-error-message.rs:1:1 12 | 13LL | 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) 16help: consider annotating `NoCloneOrEq` with `#[derive(PartialEq)]` 17 | 18LL + #[derive(PartialEq)] 19LL | struct NoCloneOrEq; 20 | 21 22error[E0277]: the trait bound `NoCloneOrEq: Clone` is not satisfied 23 --> $DIR/deriving-no-inner-impl-error-message.rs:9:5 24 | 25LL | #[derive(Clone)] 26 | ----- in this derive macro expansion 27LL | struct C { 28LL | x: NoCloneOrEq 29 | ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq` 30 | 31 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) 32help: consider annotating `NoCloneOrEq` with `#[derive(Clone)]` 33 | 34LL + #[derive(Clone)] 35LL | struct NoCloneOrEq; 36 | 37 38error: aborting due to 2 previous errors 39 40Some errors have detailed explanations: E0277, E0369. 41For more information about an error, try `rustc --explain E0277`.