single-use-lifetime warning not satisifiable with '_ , " '_
is a reserved lifetime name "
#60554
Labels
A-lifetimes
Area: Lifetimes / regions
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-lint-single_use_lifetimes
`single_use_lifetimes` lint
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Minimal Proof:
Alas, doing what is natural ( and what people will tell you to do on IRC channels, only to find that it doesn't work, and writing:
Trips up E0637
I looked at all the other open bugs in this area and I saw several that looked similar( #55057 was closest ), but none were close enough to this, in particular, the error about using a reserved lifetime is particularly odd.
Other examples I saw of this understandably complained about an inferred lifetime in a return value, but having problems with it in input values is very curious.
So apologies if this is "a dupe"
rustc -V # rustc 1.36.0-nightly (a3404557c 2019-05-03)
The text was updated successfully, but these errors were encountered: