2016-12-22 11:46:08 -06:00
|
|
|
pub trait Resources<'a> {}
|
|
|
|
|
|
|
|
pub trait Buffer<'a, R: Resources<'a>> {
|
2017-05-11 07:05:00 -05:00
|
|
|
|
2016-12-22 11:46:08 -06:00
|
|
|
fn select(&self) -> BufferViewHandle<R>;
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
//~| lifetime mismatch
|
|
|
|
//~| ERROR mismatched types
|
|
|
|
//~| lifetime mismatch
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct BufferViewHandle<'a, R: 'a+Resources<'a>>(&'a R);
|
|
|
|
|
|
|
|
fn main() {}
|