-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: array lengths can't depend on generic parameters #50
Comments
Related issue: rust-lang/rust#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 4ac62c2):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!)
The text was updated successfully, but these errors were encountered: