Closed
Description
UPDATE: Mentoring instructions here.
Tested at 5165ee9 and current playpen
#![feature(nll)]
fn foo(x: &u32) -> &'static u32 {
&*x
}
fn main() {}
Error message:
error: free region `` does not outlive free region `'static`
--> src/main.rs:4:5
|
4 | &*x
| ^^^
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
Area: Non-lexical lifetimes (NLL)Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Working towards the "diagnostic parity" goalRelevant to the compiler team, which will review and decide on the PR/issue.