-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
struct S<'a> {
field: &'a i32,
}
fn f(a: &S, b: i32) -> &i32 {
panic!();
}
test.rs:4:24: 4:28 help: this function's return type contains a borrowed value,
but the signature does not say whether it is borrowed from one of `a`'s 2 elided lifetimes
or one of `b`'s 0 elided lifetimes
See #30086 for a similar issue which has been fixed.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints