Multiple defining uses of type alias impl trait in single function are not handled #73481
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
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-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: compiler error because
X<A, B>
is unified withA
and alsoX<B, A>
is unified withA
.Instead, this happened: program compiles, runs and segfaults.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: