summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-32324.rs
blob: 2df547b2e0c92b974f80f8e33ca7bed5390276f3 (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
// check-pass
#![allow(dead_code)]

trait Resources {
    type Buffer: Copy;
}

#[derive(Copy, Clone)]
struct ConstantBufferSet<R: Resources>(
    pub R::Buffer
);

#[derive(Copy, Clone)]
enum It {}
impl Resources for It {
    type Buffer = u8;
}

#[derive(Copy, Clone)]
enum Command {
    BindConstantBuffers(ConstantBufferSet<It>)
}

fn main() {}