rust/tests/crashes/120254.rs

25 lines
443 B
Rust
Raw Normal View History

2024-04-15 21:01:02 +00:00
//@ 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) -> () {}
}