-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust-lang/rust#83954 removed the trailing :.
- Loading branch information
1 parent
d6561cc
commit d9e8dd9
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
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
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 `std::convert::TryFrom<u8>` for type `Numbers` | ||
--> $DIR/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 a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0119]: conflicting implementations of trait `num_enum::TryFromPrimitive` for type `Numbers` | ||
--> $DIR/conflicting_derive.rs:1:10 | ||
| | ||
1 | #[derive(num_enum::FromPrimitive, num_enum::TryFromPrimitive)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ -------------------------- first implementation here | ||
| | | ||
| conflicting implementation for `Numbers` | ||
| | ||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |