| 1 | use daft::Diffable; |
| 2 | |
| 3 | #[derive(Debug, Eq, PartialEq, Diffable)] |
| 4 | #[daft(leaf)] |
| 5 | struct StructWithGenerics<'d, 'e, T, U> |
| 6 | where |
| 7 | // daft(leaf) on the struct means Diffable shouldn't be necessary. |
| 8 | T: 'd + ?Sized, |
| 9 | U: 'e + ?Sized, |
| 10 | { |
| 11 | b: usize, |
| 12 | c: &'d T, |
| 13 | d: &'e U, |
| 14 | } |
| 15 | |
| 16 | fn main() {} |