Another Yoke ICE with reference as capture argument #1024
Labels
C-zerovec
Component: Yoke, ZeroVec, DataBake
question
Unresolved questions; type unclear
R-out-of-scope
Resolution: ICU4X is the wrong project
I'm filing this issue for @Manishearth to verify if it is a real bug, and if so, to open an issue against rust-lang.
@zbraniecki found another ICE when wiring up the Yoke project function:
Instructions to reproduce:
cd components/datetime
cargo +nightly-2021-08-27 run --example work_log --features std
The code in question is:
I fixed the ICE in this code by changing the type of
options
from&DateTimeFormatOptions
toDateTimeFormatOptions
via cloning. So I think the compiler is confused about the lifetime of the capture if the capture is a reference.The text was updated successfully, but these errors were encountered: