-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
repeated TAIT doesn't detect lifetime conflict #86465
Copy link
Copy link
Closed
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This code compiles, but it should not:
The function creates two constraints:
X<'t, 'u> = &'t u32, which meanstype X<'a, 'b> = &'a u32X<'u, 't> = &'t u32, which meanstype X<'a, 'b> = &'b u32These should not both be satisfiable!