False positive for "can't capture dynamic environment in a fn item" #21622
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Because of
let new = Index::new;
, a local shorthand to a static function, this code fails to compile. Moving thelet new
down belowfn inner
it will compile.Error message:
Playpen link
rust version:
rustc 1.0.0-nightly (4874ca36f 2015-01-23 00:18:57 +0000)
The text was updated successfully, but these errors were encountered: