2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-08-13 17:21:55 -05:00
|
|
|
|
|
|
|
trait AsBufferView {
|
|
|
|
type Device;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Error {
|
|
|
|
type Span;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
type Error: Error;
|
|
|
|
fn foo(&self) -> &<Self::Error as Error>::Span;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<D: Error, VBuf0> Foo for VBuf0
|
|
|
|
where
|
|
|
|
VBuf0: AsBufferView<Device = D>,
|
|
|
|
{
|
|
|
|
type Error = D;
|
|
|
|
fn foo(&self) -> &<Self::Error as Error>::Span {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|