Enum variants can't be imported via type alias #123131
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
In chrono 0.4.36 we renamed a
LocalResult
enum toMappedLocalTime
, and added a type alias with the nameLocalResult
.This turned out to be a breaking change because enum variants can't be imported through a type alias.
Gives the error:
I expected the type alias to behave identical to the enum.
Maybe related to RFC 2338 Type alias enum variants.
The text was updated successfully, but these errors were encountered: