Correct detection of elided lifetimes in impl-trait.
This commit is contained in:
parent
1d284af117
commit
de1859fc32
2 changed files with 9 additions and 2 deletions
|
|
@ -60,4 +60,9 @@ mod in_path {
|
|||
//~| ERROR missing lifetime specifier
|
||||
}
|
||||
|
||||
// This must not err, as the `&` actually resolves to `'a`.
|
||||
fn resolved_anonymous<'a, T>(f: impl Fn(&'a str) -> &T) {
|
||||
f("f")
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue