diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/traits/issue-90195-2.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/traits/issue-90195-2.rs b/src/test/ui/traits/issue-90195-2.rs new file mode 100644 index 000000000..b739dc46e --- /dev/null +++ b/src/test/ui/traits/issue-90195-2.rs @@ -0,0 +1,20 @@ +// check-pass +pub trait Archive { + type Archived; +} + +impl<T> Archive for Option<T> { + type Archived = (); +} +pub type Archived<T> = <T as Archive>::Archived; + +pub trait Deserialize<D> {} + +const ARRAY_SIZE: usize = 32; +impl<__D> Deserialize<__D> for () +where + Option<[u8; ARRAY_SIZE]>: Archive, + Archived<Option<[u8; ARRAY_SIZE]>>: Deserialize<__D>, +{ +} +fn main() {} |