mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
15 lines
311 B
Rust
15 lines
311 B
Rust
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() {}
|