You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0261]:use of undeclared lifetime name `'a`
--> src/main.rs:1:35
|
1 | fn foo() -> implInto<for<'a> fn(&'a())>{
| ^^ undeclared lifetime
error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
--> src/main.rs:1:27
|
1 | fn foo() -> implInto<for<'a> fn(&'a())>{
| ^^ -- first declared here
| |
| lifetime 'a already in scope
Cause is known (mishandling in hir::lowering), using this issue to track the pending fix.
The text was updated successfully, but these errors were encountered:
rustc: don't visit lifetime parameters through visit_lifetime.
Ideally we'd also not use the `Lifetime` struct for parameters, but I'll leave that to @varkor (#48149).
Fixes#51185 (discovered while auditing all the `visit_lifetime` implementations).
r? @nikomatsakis
Minimal testcase:
Cause is known (mishandling in
hir::lowering
), using this issue to track the pending fix.The text was updated successfully, but these errors were encountered: