From 64004127b3bdc6372acbe3b4390c6ed353c9e492 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Wed, 6 Nov 2024 11:16:36 -0800 Subject: [PATCH] Test deriving arbitrary for a locally-defined `Result` type --- tests/derive.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/derive.rs b/tests/derive.rs index 880d146..c45cc24 100644 --- a/tests/derive.rs +++ b/tests/derive.rs @@ -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, + } + + let _ = Result::arbitrary(&mut Unstructured::new(&[])); }