rust/tests/crashes/120254.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
443 B
Rust
Raw Normal View History

2024-04-15 16:01:02 -05: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) -> () {}
}