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

Doesn't compile with the latest compiler #1

Closed
ujh opened this issue Apr 23, 2015 · 1 comment
Closed

Doesn't compile with the latest compiler #1

ujh opened this issue Apr 23, 2015 · 1 comment

Comments

@ujh
Copy link
Contributor

ujh commented Apr 23, 2015

Apparently std::num::FromPrimitive was removed. The workaround described here seems broken, too. So maybe a little more code is needed to get this to work again.

Here's the compiler error:

/Users/uh/.cargo/registry/src/github.com-1ecc6299db9ec823/strenum-0.0.3/src/lib.rs:7:7: 7:30 error: unresolved import `std::num::FromPrimitive`. There is no `FromPrimitive` in `std::num`
/Users/uh/.cargo/registry/src/github.com-1ecc6299db9ec823/strenum-0.0.3/src/lib.rs:7        use std::num::FromPrimitive;
                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~
/Users/uh/.cargo/registry/src/github.com-1ecc6299db9ec823/strenum-0.0.3/src/lib.rs:5:1: 31:2 note: in expansion of strenum!
/Users/uh/.cargo/registry/src/github.com-1ecc6299db9ec823/strenum-0.0.3/src/lib.rs:39:1: 41:2 note: expansion site
@iopq
Copy link
Owner

iopq commented Apr 24, 2015

Fixed according to the answer

@iopq iopq closed this as completed Apr 24, 2015
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

2 participants