Closed
Description
on nightly and beta my code doesn't compile because the type of a value is unknown:
error: the type of this value must be known in this context
--> app.rs:110:80
|
110 | collision = collision.map_or(Some(c.clone()), |mut collision| {collision.push(c); Some(collision)});
|
But it compiles on stable.
stable: rustc 1.17.0 (56124ba 2017-04-24)
beta: rustc 1.18.0-beta.1 (4dce672 2017-04-25)
nightly: rustc 1.19.0-nightly (6a5fc9e 2017-05-02)