-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add beta- and nightly-specific expected stderr
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
1 parent
3fc2758
commit c26e9a2
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
num_enum/tests/try_build/compile_fail/conflicting_default.stderr_beta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
9 changes: 9 additions & 0 deletions
9
num_enum/tests/try_build/compile_fail/conflicting_default.stderr_nightly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
20 changes: 20 additions & 0 deletions
20
num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_beta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
20 changes: 20 additions & 0 deletions
20
num_enum/tests/try_build/compile_fail/conflicting_derive.stderr_nightly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |