-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Type can no longer be inferred in 1.49 #81317
Copy link
Copy link
Closed
Labels
A-inferenceArea: Type inferenceArea: Type inferenceE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.T-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.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-inferenceArea: Type inferenceArea: Type inferenceE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.T-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.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code: Johni0702/rtp on the dtls-srtp Branch
I expected to see this happen: Compiles successfully as in 1.48
Instead, this happened: Error E0282 in
src/rfc3711.rsVersion it worked on
It most recently worked on: 1.48
Version with regression
rustc --version --verbose:I tried to minimize the code necessary for reproduction and I got it down to: