Open
Description
openedon Aug 24, 2023
The following compiles since the full transition to NLL in v1.63, although it shouldn't:
struct Static<T: 'static>(T);
fn test<T>() {
let _ = None::<Static<T>>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)Category: This is a bug.Category: This is a bug.Working towards the "invalid code does not compile" goalWorking towards the "invalid code does not compile" goalMedium priorityMedium priorityRelevant 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.Relevant 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.Performance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.