mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
d0b22b53ff
Fixes #2064
7 lines
269 B
Text
7 lines
269 B
Text
error[E0600]: cannot apply unary operator `-` to type `u32`
|
|
--> $DIR/default_value_t_invalid.rs:14:30
|
|
|
|
|
14 | #[clap(default_value_t = -10)]
|
|
| ^^^ cannot apply unary operator `-`
|
|
|
|
|
= note: unsigned values cannot be negated
|