mirror of https://github.com/rust-lang/rust
18 lines
368 B
Rust
18 lines
368 B
Rust
//@ check-pass
|
|
// Test the case where we resolve `C::Result` and the trait bound
|
|
// itself includes a `Self::Item` shorthand.
|
|
//
|
|
// Regression test for issue #33425.
|
|
|
|
trait ParallelIterator {
|
|
type Item;
|
|
fn drive_unindexed<C>(self, consumer: C) -> C::Result
|
|
where C: Consumer<Self::Item>;
|
|
}
|
|
|
|
pub trait Consumer<ITEM> {
|
|
type Result;
|
|
}
|
|
|
|
fn main() { }
|