You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disallow Unsized Enums
Fixes#16812.
This PR is a potential fix for #16812, an issue which is reported [again](#36801) and [again](#36975), with over a dozen duplicates by now.
This PR is mainly meant to promoted discussion about the issue and the correct way to fix it.
This is a [breaking-change] since the error is now reported during wfchecking, so that even the definition of a (potentially) unsized enum will cause an error (whereas it would previously cause an ICE at trans time if the enum was used in an unsized manner).
ICE when define unused and unsized enum in unused struct. Tested on 1.12, Beta, Nightly.
Code (playground):
Output:
Meta
rustc --version --verbose
:Backtrace from play.rust-lang.org (on windows backtrace is useless):
The text was updated successfully, but these errors were encountered: