coeuvre / rust-2048

A 2048 clone with Piston game engine
MIT License
236 stars 40 forks source link

ndarray v0.3.1 causing compilation failures #22

Open JamesDavidCarr opened 7 years ago

JamesDavidCarr commented 7 years ago

Cloning the repo at 771bd5f192cec34da1f8348eafbd64b6a5e7e63e and attempting to cargo build fails because of:

` Compiling ndarray v0.3.1 error[E0277]: the trait bound Self: std::marker::Sized is not satisfied --> /Users/.../.cargo/registry/src/github.com-1ecc6299db9ec823/ndarray-0.3.1/src/lib.rs:366:5 366 unsafe fn clone_with_ptr(&self, ptr: mut Self::Elem) -> (Self, mut Self::Elem); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trait Self: std::marker::Sized not satisfied
= help: consider adding a where Self: std::marker::Sized bound
= note: tuple elements must have Sized type`

Running cargo update resolved the issue.