about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-15524.rs
AgeCommit message (Collapse)AuthorLines
2022-08-07Further improve error message for E0081Bryysen-16/+0
Multiple duplicate assignments of the same discriminant are now reported in the samme error. We now point out the incrementation start point for discriminants that are not explicitly assigned that are also duplicates. Removed old test related to E0081 that is now covered by error-codes/E0081.rs. Also refactored parts of the `check_enum` function.
2022-05-28Improve error message for E0081Bryysen-3/+3
Previously whenever a duplicate discriminant was detected for an Enum, we would print the discriminant bits in the diagnostic without any casting. This caused us to display incorrect values for negative discriminants. After this PR we format the discriminant signedness correctly. Also reworded some of the original error messages.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+26