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