Skip to content

Commit

Permalink
Test deriving arbitrary for a locally-defined Result type
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Nov 6, 2024
1 parent c22d7c8 commit 6400412
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 6400412

Please sign in to comment.