-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear constant values generated code, defined behavior with the alter…
…native variants, add error messages. (#89)
- Loading branch information
1 parent
c26e9a2
commit 4b1985c
Showing
6 changed files
with
94 additions
and
25 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
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/alternative_clashes_with_variant.stderr
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,5 @@ | ||
error: The discriminant '2' collides with a value attributed to a previous variant | ||
--> tests/try_build/compile_fail/alternative_clashes_with_variant.rs:7:5 | ||
| | ||
7 | Two = 2, | ||
| ^^^ |
12 changes: 0 additions & 12 deletions
12
num_enum/tests/try_build/compile_fail/unreachable_patterns.stderr
This file was deleted.
Oops, something went wrong.
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
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