1 2 3 4 5 6 7 8 9 10 11 12
use test_strategy::Arbitrary; struct TestArgs { x_max: u32, } #[derive(Arbitrary, Debug, PartialEq)] #[arbitrary(args = TestArgs)] struct TestStruct { #[strategy(0..args.x_max)] x: u32, } fn main() {}