-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.NLL-soundWorking towards the "invalid code does not compile" goalWorking towards the "invalid code does not compile" goal
Milestone
Description
For example, the following code compiles
#![feature(nll)]
fn foo<'a>() {
|x: &'a i32| -> &'static i32 {
return &x;
};
}
cc #47184
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.NLL-soundWorking towards the "invalid code does not compile" goalWorking towards the "invalid code does not compile" goal