]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-90195.rs
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
[rust.git] / src / test / ui / traits / issue-90195.rs
1 // check-pass
2 pub trait Archive {
3     type Archived;
4 }
5
6 impl<T> Archive for Option<T> {
7     type Archived = ();
8 }
9 pub type Archived<T> = <T as Archive>::Archived;
10
11 pub trait Deserialize<D> {}
12
13 const ARRAY_SIZE: usize = 32;
14 impl<__D> Deserialize<__D> for ()
15 where
16     Option<[u8; ARRAY_SIZE]>: Archive,
17     Option<[u8; ARRAY_SIZE]>: Archive,
18     Archived<Option<[u8; ARRAY_SIZE]>>: Deserialize<__D>,
19 {
20 }
21 fn main() {}