mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
25 lines
443 B
Rust
25 lines
443 B
Rust
![]() |
//@ known-bug: #120254
|
||
|
|
||
|
trait Dbg {}
|
||
|
|
||
|
struct Foo<I, E> {
|
||
|
input: I,
|
||
|
errors: E,
|
||
|
}
|
||
|
|
||
|
trait Bar: Offset<<Self as Bar>::Checkpoint> {
|
||
|
type Checkpoint;
|
||
|
}
|
||
|
|
||
|
impl<I: Bar, E: Dbg> Bar for Foo<I, E> {
|
||
|
type Checkpoint = I::Checkpoint;
|
||
|
}
|
||
|
|
||
|
trait Offset<Start = Self> {}
|
||
|
|
||
|
impl<I: Bar, E: Dbg> Offset<<Foo<I, E> as Bar>::Checkpoint> for Foo<I, E> {}
|
||
|
|
||
|
impl<I: Bar, E> Foo<I, E> {
|
||
|
fn record_err(self, _: <Self as Bar>::Checkpoint) -> () {}
|
||
|
}
|