2018-09-06 07:41:12 -05:00
|
|
|
//@ run-pass
|
|
|
|
|
2018-01-31 21:11:50 -06:00
|
|
|
pub struct DescriptorSet<'a> {
|
|
|
|
pub slots: Vec<AttachInfo<'a, Resources>>
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait ResourcesTrait<'r>: Sized {
|
|
|
|
type DescriptorSet: 'r;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Resources;
|
|
|
|
|
|
|
|
impl<'a> ResourcesTrait<'a> for Resources {
|
|
|
|
type DescriptorSet = DescriptorSet<'a>;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum AttachInfo<'a, R: ResourcesTrait<'a>> {
|
|
|
|
NextDescriptorSet(Box<R::DescriptorSet>)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _x = DescriptorSet {slots: Vec::new()};
|
|
|
|
}
|