Skip to content

Compiler error due to structopt attributes #125

Closed
@fpoli

Description

@fpoli

The latest nightly Rust generates an error when using #[structopt(..)] arguments:

error[E0658]: The attribute `structopt` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
  --> src/cli.rs:27:5
   |
27 |     #[structopt(long = "graphviz_file")]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(custom_attribute)] to the crate attributes to enable

See https://travis-ci.org/rust-lang-nursery/polonius/builds/405315425 for a full example.

It would be useful to mention in the readme the #![feature(custom_attribute)].

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

    Issue actions