File: conflicting_derive.stderr

package info (click to toggle)
rust-num-enum 0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0119]: conflicting implementations of trait `num_enum::TryFromPrimitive` for type `Numbers`
 --> $DIR/conflicting_derive.rs:1:35
  |
1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)]
  |          -----------------------  ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Numbers`
  |          |
  |          first implementation here
  |
  = note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `std::convert::TryFrom<u8>` for type `Numbers`
 --> $DIR/conflicting_derive.rs:1:35
  |
1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)]
  |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: conflicting implementation in crate `core`:
          - impl<T, U> TryFrom<U> for T
            where U: Into<T>;
  = note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)