Skip to content

Commit

Permalink
Add beta- and nightly-specific expected stderr
Browse files Browse the repository at this point in the history
It looks like some commit started reporting conflicting trait impls
using an un-qualified trait name, rather than a fully qualified one.
This is a minor cosmetic detail, as far as these tests are concerned. We
should be able to unify these again when 1.67 hits stable in a few
weeks.
  • Loading branch information
illicitonion committed Jan 7, 2023
1 parent 3fc2758 commit c26e9a2
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0119]: conflicting implementations of trait `Default` for type `Number`
--> tests/try_build/compile_fail/conflicting_default.rs:1:19
|
1 | #[derive(Default, num_enum::Default)]
| ------- ^^^^^^^^^^^^^^^^^ conflicting implementation for `Number`
| |
| first implementation here
|
= note: this error originates in the derive macro `num_enum::Default` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0119]: conflicting implementations of trait `Default` for type `Number`
--> tests/try_build/compile_fail/conflicting_default.rs:1:19
|
1 | #[derive(Default, num_enum::Default)]
| ------- ^^^^^^^^^^^^^^^^^ conflicting implementation for `Number`
| |
| first implementation here
|
= note: this error originates in the derive macro `num_enum::Default` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
error[E0119]: conflicting implementations of trait `TryFromPrimitive` 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<u8>` 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<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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
error[E0119]: conflicting implementations of trait `TryFromPrimitive` 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<u8>` 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<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)

0 comments on commit c26e9a2

Please sign in to comment.