File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
num_enum/tests/try_build/compile_fail Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ error[E0119]: conflicting implementations of trait `num_enum::CannotDeriveBothFromPrimitiveAndTryFromPrimitive` for type `Numbers`
2+ --> tests/try_build/compile_fail/conflicting_derive.rs:1:35
3+ |
4+ 1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)]
5+ | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Numbers`
6+ | |
7+ | first implementation here
8+ |
9+ = note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
10+
11+ error[E0119]: conflicting implementations of trait `TryFrom<u8>` for type `Numbers`
12+ --> tests/try_build/compile_fail/conflicting_derive.rs:1:35
13+ |
14+ 1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)]
15+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16+ |
17+ = note: conflicting implementation in crate `core`:
18+ - impl<T, U> TryFrom<U> for T
19+ where U: Into<T>;
20+ = note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
You can’t perform that action at this time.
0 commit comments