Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 649 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// pretty-expanded FIXME #23616
use std::marker::PhantomData;
pub struct Handle<T, I>(T, I);
impl<T, I> Handle<T, I> {
pub fn get_info(&self) -> &I {
let Handle(_, ref info) = *self;
pub struct BufferHandle<D: Device, T> {
raw: RawBufferHandle<D>,
_marker: PhantomData<T>,
impl<D: Device, T> BufferHandle<D, T> {
pub fn get_info(&self) -> &String {
pub type RawBufferHandle<D: Device> = Handle<<D as Device>::Buffer, String>;
pub trait Device {
type Buffer;
fn main() {}
You can’t perform that action at this time.