mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
24 lines
349 B
Rust
24 lines
349 B
Rust
// 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() {}
|