diff options
Diffstat (limited to 'tests/ui/bad-long-names/bad-long-names.rs')
-rw-r--r-- | tests/ui/bad-long-names/bad-long-names.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/bad-long-names/bad-long-names.rs b/tests/ui/bad-long-names/bad-long-names.rs new file mode 100644 index 0000000..61a9696 --- /dev/null +++ b/tests/ui/bad-long-names/bad-long-names.rs @@ -0,0 +1,15 @@ +/// Command +#[derive(argh::FromArgs)] +struct Cmd { + #[argh(switch)] + /// non-ascii + привет: bool, + #[argh(switch)] + /// uppercase + XMLHTTPRequest: bool, + #[argh(switch, long = "not really")] + /// bad attr + ok: bool, +} + +fn main() {} |