|
| 1 | +error[E0369]: binary operation `==` cannot be applied to type `(i32) is 0..=999999999` |
| 2 | + --> $DIR/derives_fail.rs:11:20 |
| 3 | + | |
| 4 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 5 | + | --------- in this derive macro expansion |
| 6 | +LL | #[repr(transparent)] |
| 7 | +LL | struct Nanoseconds(NanoI32); |
| 8 | + | ^^^^^^^ |
| 9 | + |
| 10 | +error[E0277]: the trait bound `(i32) is 0..=999999999: Eq` is not satisfied |
| 11 | + --> $DIR/derives_fail.rs:11:20 |
| 12 | + | |
| 13 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 14 | + | -- in this derive macro expansion |
| 15 | +LL | #[repr(transparent)] |
| 16 | +LL | struct Nanoseconds(NanoI32); |
| 17 | + | ^^^^^^^ the trait `Eq` is not implemented for `(i32) is 0..=999999999` |
| 18 | + | |
| 19 | +note: required by a bound in `AssertParamIsEq` |
| 20 | + --> $SRC_DIR/core/src/cmp.rs:LL:COL |
| 21 | + |
| 22 | +error[E0277]: `(i32) is 0..=999999999` doesn't implement `Debug` |
| 23 | + --> $DIR/derives_fail.rs:11:20 |
| 24 | + | |
| 25 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 26 | + | ----- in this derive macro expansion |
| 27 | +LL | #[repr(transparent)] |
| 28 | +LL | struct Nanoseconds(NanoI32); |
| 29 | + | ^^^^^^^ `(i32) is 0..=999999999` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 30 | + | |
| 31 | + = help: the trait `Debug` is not implemented for `(i32) is 0..=999999999` |
| 32 | + |
| 33 | +error[E0277]: the trait bound `(i32) is 0..=999999999: Ord` is not satisfied |
| 34 | + --> $DIR/derives_fail.rs:11:20 |
| 35 | + | |
| 36 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 37 | + | --- in this derive macro expansion |
| 38 | +LL | #[repr(transparent)] |
| 39 | +LL | struct Nanoseconds(NanoI32); |
| 40 | + | ^^^^^^^ the trait `Ord` is not implemented for `(i32) is 0..=999999999` |
| 41 | + |
| 42 | +error[E0277]: can't compare `(i32) is 0..=999999999` with `_` |
| 43 | + --> $DIR/derives_fail.rs:11:20 |
| 44 | + | |
| 45 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 46 | + | ---------- in this derive macro expansion |
| 47 | +LL | #[repr(transparent)] |
| 48 | +LL | struct Nanoseconds(NanoI32); |
| 49 | + | ^^^^^^^ no implementation for `(i32) is 0..=999999999 < _` and `(i32) is 0..=999999999 > _` |
| 50 | + | |
| 51 | + = help: the trait `PartialOrd<_>` is not implemented for `(i32) is 0..=999999999` |
| 52 | + |
| 53 | +error[E0277]: the trait bound `(i32) is 0..=999999999: Hash` is not satisfied |
| 54 | + --> $DIR/derives_fail.rs:11:20 |
| 55 | + | |
| 56 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 57 | + | ---- in this derive macro expansion |
| 58 | +LL | #[repr(transparent)] |
| 59 | +LL | struct Nanoseconds(NanoI32); |
| 60 | + | ^^^^^^^ the trait `Hash` is not implemented for `(i32) is 0..=999999999` |
| 61 | + |
| 62 | +error[E0277]: the trait bound `(i32) is 0..=999999999: Default` is not satisfied |
| 63 | + --> $DIR/derives_fail.rs:11:20 |
| 64 | + | |
| 65 | +LL | #[derive(Clone, Copy, PartialEq, Eq, Debug, Ord, PartialOrd, Hash, Default)] |
| 66 | + | ------- in this derive macro expansion |
| 67 | +LL | #[repr(transparent)] |
| 68 | +LL | struct Nanoseconds(NanoI32); |
| 69 | + | ^^^^^^^ the trait `Default` is not implemented for `(i32) is 0..=999999999` |
| 70 | + |
| 71 | +error: aborting due to 7 previous errors |
| 72 | + |
| 73 | +Some errors have detailed explanations: E0277, E0369. |
| 74 | +For more information about an error, try `rustc --explain E0277`. |
0 commit comments