blob: d39ae6ebf1da2c01191cb995083f5f2e7599543d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// check-pass
pub trait Backend {
type DescriptorSetLayout;
}
pub struct Back;
impl Backend for Back {
type DescriptorSetLayout = u32;
}
pub struct HalSetLayouts {
vertex_layout: <Back as Backend>::DescriptorSetLayout,
}
impl HalSetLayouts {
pub fn iter<DSL>(self) -> DSL
where
Back: Backend<DescriptorSetLayout = DSL>,
{
self.vertex_layout
}
}
fn main() {}
|