Closed
Description
fn a() -> &i32 {
panic!();
}
fn b(x: i32) -> &i32 {
panic!();
}
test.rs:1:11: 1:15 help: this function's return type contains a borrowed value,
but there is no value for it to be borrowed from
test.rs:4:17: 4:21 help: this function's return type contains a borrowed value,
but the signature does not say which one of `x`'s 0 elided lifetimes it is borrowed from
Help for a
is reasonable, but help for b
is not. See also #22760.