BurntSushi / quickcheck

Automated property based testing for Rust (with shrinking).
The Unlicense
2.4k stars 149 forks source link

#[derive(Arbitrary)] V2 #205

Closed simonhdickson closed 4 years ago

simonhdickson commented 6 years ago

Follow up to #175, I believe I've fixed two of the issues reported in the other PR but I'm having trouble with generating nested tuples.

I'm quite new to procedural macros so if anyone could help me understand what I'm doing wrong I'd be grateful.

simonhdickson commented 6 years ago

Ok I solved my previous issue. Now when I expand the macro output it looks valid and when copied in place of the struct/derive it builds correctly, but when building normally it appears to have an issue saying arbitrary expressions aren't allowed in patterns.

Does anyone know how I can debug this issue?

BurntSushi commented 4 years ago

https://github.com/BurntSushi/quickcheck/pull/222#issuecomment-573267560