Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly test expectation #39

Merged
merged 1 commit into from Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions num_enum/tests/try_build.rs
Expand Up @@ -34,10 +34,10 @@ impl Renamer {
const STDERR_EXTENSION: &'static str = "stderr";

#[rustversion::all(beta)]
const VERSION_SPECIFIC_EXTENSION: &'static str = "stderr_nightly";
const VERSION_SPECIFIC_EXTENSION: &'static str = "stderr_beta";

#[rustversion::all(nightly)]
const VERSION_SPECIFIC_EXTENSION: &'static str = "stderr_beta";
const VERSION_SPECIFIC_EXTENSION: &'static str = "stderr_nightly";

#[rustversion::all(not(beta), not(nightly))]
const VERSION_SPECIFIC_EXTENSION: &'static str = "stderr_doesnotexist";
Expand Down
@@ -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)