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

NonZero can no longer be dereferenced #921

Closed
dtolnay opened this issue May 9, 2017 · 1 comment
Closed

NonZero can no longer be dereferenced #921

dtolnay opened this issue May 9, 2017 · 1 comment
Assignees

Comments

@dtolnay
Copy link
Member

dtolnay commented May 9, 2017

$ cargo build --features unstable
   Compiling serde v1.0.2
error: type `core::nonzero::NonZero<T>` cannot be dereferenced
   --> src/ser/impls.rs:328:17
    |
328 |                 (**self).serialize(serializer)
    |                 ^^^^^^^^
...
350 | deref_impl!(<T> Serialize for NonZero<T> where T: Serialize + Zeroable);
    | ------------------------------------------------------------------------ in this macro invocation
@dtolnay
Copy link
Member Author

dtolnay commented May 9, 2017

Looks like rust-lang/rust#41064.

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

No branches or pull requests

1 participant