Skip to content

confusing diagnostic about allocator_api feature #82452

Closed
@matthiaskrgr

Description

@matthiaskrgr
struct Stats {
    list: Vec<String, String>,
}

The Strings were supposed to be inside a tuple,

struct Stats {
    list: Vec<(String, String)>,
}

but instead of a some kind of a mismatched argument number message, I got a warning about allocator_api 😅


  Compiling playground v0.0.1 (/playground)
error[E0658]: use of unstable library feature 'allocator_api'
 --> src/lib.rs:2:23
  |
2 |     list: Vec<String, String>,
  |                       ^^^^^^
  |
  = note: see issue #32838 <https://github.com/rust-lang/rust/issues/32838> for more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-allocatorsArea: Custom and system allocatorsA-collectionsArea: `std::collections`A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions