-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Type annotations needed in assertion #113283
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API 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
C-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API 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.
Code
I tried this code:
I expected to see this happen: Compiles and assertion passes.
Instead, this happened: Compiler wants type annotation somewhere in assertion. Span is on whole assertion.
Version it worked on
It most recently worked on: 1.70 stable
Version with regression
Recent nightlies (also occurs on Rust playground)
rustc --version --verbose: