Closed jonathanstrong closed 4 years ago
Related issue: https://github.com/rust-lang/rust/issues/67743
Reproduced in:
Works in:
Thanks! As you know, this code compiles since Rust 1.28, so it's unfortunate that it is broken on nightly.
I was able to compile it on rustc 1.42.0-nightly (6d3f4e0aa 2020-01-25), Windows 10
The issue has been fixed in Rust and is fixed in Rust 1.42. It will continue to be an issue (unless further changes are done in matrixmultiply) with older versions, but it is probably too late to matter now.
ran into this error with nightly (via
$ cargo check
on master at 4ac62c28):haven't been able to make much headway in understanding what changed in rustc, but it seems likely this is a compiler bug.
It looks like substituting a
const fn
implemented on the struct does work (current implementation seems to rely on trait associated constants).update: for a quick workaround, roll-back to nightly-2019-12-25 (ho ho ho!)