Skip to content
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

Non-exhaustive pattern: type &device::DeviceType is non-empty #64

Open
ghost opened this issue Aug 21, 2016 · 0 comments
Open

Non-exhaustive pattern: type &device::DeviceType is non-empty #64

ghost opened this issue Aug 21, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 21, 2016

I am getting the following error when I try to build collenchyma on Windows 10:

C:\Users\Maplicant\.cargo\registry\src\github.com-1ecc6299db9ec823\collenchyma-0.0.8\src\tensor.rs:326:21: 348:22 error: non-exhaustive patterns: type &device::DeviceType is non-empty [E0002]
C:\Users\Maplicant\.cargo\registry\src\github.com-1ecc6299db9ec823\collenchyma-0.0.8\src\tensor.rs:326                     match destination {
                                                                                                                     ^
C:\Users\Maplicant\.cargo\registry\src\github.com-1ecc6299db9ec823\collenchyma-0.0.8\src\tensor.rs:326:21: 348:22 help: run `rustc --explain E0002` to see a detailed explanation
C:\Users\Maplicant\.cargo\registry\src\github.com-1ecc6299db9ec823\collenchyma-0.0.8\src\tensor.rs:326:21: 348:22 help: Please ensure that all possible cases are being handled; possibly adding wildcards or more match arms.
C:\Users\Maplicant\.cargo\registry\src\github.com-1ecc6299db9ec823\collenchyma-0.0.8\src\tensor.rs:326                     match destination {
                                                                                                                     ^
error: aborting due to previous error

I'm guessing this has to do with the match statement at tensor.rs:342 not having a default case, but I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants