tests/issues/issue_614.rs
raw| 1 | #![cfg(feature = "derive")] |
| 2 | |
| 3 | use bincode::{Decode, Encode}; |
| 4 | |
| 5 | #[derive(Encode, Decode, Clone)] |
| 6 | pub struct A; |
| 7 | #[derive(Encode, Decode, Clone)] |
| 8 | pub struct B<T> |
| 9 | where |
| 10 | T: Clone + Encode + Decode<()>, |
| 11 | { |
| 12 | pub t: T, |
| 13 | } |
| 14 | |
| 15 | #[derive(Encode, Decode)] |
| 16 | pub struct MyStruct<T> |
| 17 | where |
| 18 | T: Clone + Encode + Decode<()>, |
| 19 | { |
| 20 | pub a: A, |
| 21 | pub b: B<T>, |
| 22 | } |