From 4caa40d4df7b39c536ef02c6ac64afebdb042434 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Mon, 9 Mar 2026 22:55:37 +0100 Subject: [PATCH] Fix up trybuilds 1.94.0 got released to stable --- .../conflicting_derive.stderr_beta | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_beta diff --git a/num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_beta b/num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_beta new file mode 100644 index 0000000..4cb90fd --- /dev/null +++ b/num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_beta @@ -0,0 +1,20 @@ +error[E0119]: conflicting implementations of trait `num_enum::CannotDeriveBothFromPrimitiveAndTryFromPrimitive` for type `Numbers` + --> tests/try_build/compile_fail/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 `TryFrom` for type `Numbers` + --> tests/try_build/compile_fail/conflicting_derive.rs:1:35 + | +1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `core`: + - impl TryFrom for T + where U: Into; + = note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)