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

#[must_use] on methods is experimental #119

Closed
dtolnay opened this issue Aug 27, 2017 · 0 comments
Closed

#[must_use] on methods is experimental #119

dtolnay opened this issue Aug 27, 2017 · 0 comments

Comments

@dtolnay
Copy link

dtolnay commented Aug 27, 2017

I see this warning compiling json 0.11.9 with rustc 1.21.0-nightly (003a929f9 2017-08-26):

warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/json-0.11.9/src/value/mod.rs:370:5
    |
370 | /     pub fn push<T>(&mut self, value: T) -> Result<()>
371 | |     where T: Into<JsonValue> {
372 | |         match *self {
373 | |             JsonValue::Array(ref mut vec) => {
...   |
378 | |         }
379 | |     }
    | |_____^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
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

1 participant