We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b3757 commit 9989177Copy full SHA for 9989177
tests/tests.rs
@@ -490,6 +490,21 @@ fn error_patterns() {
490
}
491
492
493
+#[test]
494
+fn result_match() {
495
+ error_chain! { }
496
+
497
+ fn ok() -> Result<()> {
498
+ Ok(())
499
+ }
500
501
+ match ok() {
502
+ Ok(()) => {},
503
+ Err(Error(ErrorKind::Msg(_), _)) => {},
504
+ Err(..) => {},
505
506
+}
507
508
#[test]
509
fn error_first() {
510
error_chain! {
0 commit comments