-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Regression from stable to nightly: nested impl trait is not allowed #57979
Copy link
Copy link
Closed
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have some code that looks a bit like this:
On
1.32.0(and the current beta1.33.0-beta.4 2019-01-24 635817b9db20ecdcd036) this compiles successfully.On the current nightly
1.34.0-nightly 2019-01-28 d8a0dd7ae88023bd09fathis fails with:A workaround is just to use generics. Did we mean to change the rules around nested impl trait here?