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
The type of e2 is a union that includes Err<U>, where U is an unbound type parameter.
🙂 Expected behavior
I expect type parameters to stay in their scopes. As for what Err<U> should actually be... I think, uh, maybe it should be another copy of Err<0 | 1 | 2> or just omitted from the union?
🔎 Search Terms
generic type parameter, union of functions, leak unbound escaped rogue fugitive
🕗 Version & Regression Information
⏯ Playground Link
Furnished
💻 Code
🙁 Actual behavior
The type of
e2
is a union that includesErr<U>
, whereU
is an unbound type parameter.🙂 Expected behavior
I expect type parameters to stay in their scopes. As for what
Err<U>
should actually be... I think, uh, maybe it should be another copy ofErr<0 | 1 | 2>
or just omitted from the union?Additional information about the issue
This is a minimal example derived from a Stack Overflow question.
Not sure if #43961 and #55467 are related, or if those are different manifestations of type parameter escape.
The text was updated successfully, but these errors were encountered: