Skip to content

Broken link in default_values_t error message #5842

@stevenengler

Description

@stevenengler

Please complete the following tasks

Rust Version

rustc 1.83.0 (90b35a623 2024-11-26)

Clap Version

v4.5.23

Minimal reproducible code

#[clap(default_values_t = Some(Vec::new()))]
foo: Option<Vec<String>>,

Steps to reproduce the bug with the above code

cargo build

Actual Behaviour

error: #[arg(default_values_t)] can be used only on Vec types
       
       = note: see https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes

Link is a 404.

The master branch of clap does not contain the path examples/derive_ref/README.md.

This link is repeated several times in https://github.com/clap-rs/clap/blob/fde45f9aea766fb8de46e3d46e6575f393c3b6b9/clap_derive/src/item.rs.

Expected Behaviour

A working link.

Additional Context

No response

Debug Output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions