Skip to content

Commit

Permalink
Merge pull request #206 from fitzgen/test-derive-result
Browse files Browse the repository at this point in the history
Test deriving arbitrary for a locally-defined `Result` type
  • Loading branch information
Manishearth authored Nov 6, 2024
2 parents c22d7c8 + 6400412 commit 9281476
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,11 @@ fn derive_structs_named_same_as_core() {
}

let _ = Default::arbitrary(&mut Unstructured::new(&[]));

#[derive(Debug, Arbitrary)]
struct Result {
f: core::result::Result<u32, u32>,
}

let _ = Result::arbitrary(&mut Unstructured::new(&[]));
}

0 comments on commit 9281476

Please sign in to comment.