Skip to content

#[must_use] on methods is experimental #119

@dtolnay

Description

@dtolnay

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dtolnay

        Issue actions

          #[must_use] on methods is experimental · Issue #119 · maciejhirsz/json-rust