Reduce nesting of macrotest test cases

This commit is contained in:
David Tolnay
2019-11-24 17:25:04 -08:00
parent d17d8eb3ee
commit c371563bfc
23 changed files with 1 additions and 2 deletions
@@ -0,0 +1,14 @@
use serde::{Serialize, Deserialize};
trait AssociatedType {
type X;
}
impl AssociatedType for i32 {
type X = i32;
}
#[derive(Serialize, Deserialize)]
struct DefaultTyParam<T: AssociatedType<X = i32> = i32> {
phantom: PhantomData<T>,
}