NLL regression: lifetime 'static required #58127
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-complete
Working towards the "valid code works" goal
P-high
High priority
NLL causes compilation to fail here:
Oddly, it does compile if I replace
g(s, |x| h(x))
byg(s, h)
. Alternatively, if I give&str
an explicit lifetime'a
, the compiler says thats
escapes the function body:The text was updated successfully, but these errors were encountered: