blob: 34b34de387976d7781f05d65ed40a803719abf90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pub trait Resources<'a> {}
pub trait Buffer<'a, R: Resources<'a>> {
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() {}
|