Skip to content

Commit 6400412

Browse files
committed
Test deriving arbitrary for a locally-defined Result type
1 parent c22d7c8 commit 6400412

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/derive.rs

+7
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,11 @@ fn derive_structs_named_same_as_core() {
392392
}
393393

394394
let _ = Default::arbitrary(&mut Unstructured::new(&[]));
395+
396+
#[derive(Debug, Arbitrary)]
397+
struct Result {
398+
f: core::result::Result<u32, u32>,
399+
}
400+
401+
let _ = Result::arbitrary(&mut Unstructured::new(&[]));
395402
}

0 commit comments

Comments
 (0)