Open
Description
Repro: https://is.gd/AbO8K4
A wrapper around a closure F
implements FnOnce
, FnMut
and Fn
where F
does. However, when the wrapper is created with a closure which implements only FnOnce
, and then the wrapper is called, the compiler expects the closure to implement FnMut
or Fn
.
rustc 1.15.0-nightly (daf8c1dfc 2016-12-05)
binary: rustc
commit-hash: daf8c1dfce3b448fc581cc319f64632ec22bd0e1
commit-date: 2016-12-05
host: x86_64-apple-darwin
release: 1.15.0-nightly
LLVM version: 3.9
cc @eddyb (discussed on IRC)