Type alias impl trait resolves to different concrete types #113619
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
requires-nightly
This issue requires a nightly compiler in some way.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: compile error that said the
make_option2
return type is wrong.Instead, this happened: compiled without error
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: