-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
overflow evaluating the requirement when trait bound is added #79807
Copy link
Copy link
Open
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.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.
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Source
rustc overflow_demo.rsreturns:Now remove the line
and it compiles without error.
Copycan be replaced with most any other trait bound.Separately, where as normally such
overflow evaluating the requirementerrors give a line number, here, no line number is given.Meta
rustc --version --verbose:Approximately the same behavior in nightly