Skip to content

Commit 699a7ee

Browse files
authored
Fix up trybuilds (#180)
1.94.0 got released to stable
1 parent 8b99d23 commit 699a7ee

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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)

0 commit comments

Comments
 (0)