rust/tests/ui/mir/issue-99866.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
407 B
Rust
Raw Normal View History

// 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() {}