clap/tests/derive_ui/default_value_t_invalid.stderr

8 lines
297 B
Text
Raw Normal View History

error[E0600]: cannot apply unary operator `-` to type `u32`
2022-05-25 18:13:22 +00:00
--> $DIR/default_value_t_invalid.rs:14:44
|
2022-05-25 18:13:22 +00:00
14 | #[clap(value_parser, default_value_t = -10)]
| ^^^ cannot apply unary operator `-`
|
= note: unsigned values cannot be negated