Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3471 from de-vri-es/unsupported-parser-ui-test
test: Add UI test for unsupported parsers.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use clap::Parser; | ||
|
||
#[derive(Parser, Clone, Debug)] | ||
struct Opt { | ||
#[clap(parse(not_a_valid_parser))] | ||
value: i8, | ||
} | ||
|
||
fn main() { | ||
println!("{:?}", Opt::parse()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: unsupported parser `not_a_valid_parser` | ||
--> tests/derive_ui/unsupported_parser.rs:5:18 | ||
| | ||
5 | #[clap(parse(not_a_valid_parser))] | ||
| ^^^^^^^^^^^^^^^^^^ |