mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-06 06:57:42 +00:00
18 lines
242 B
Rust
18 lines
242 B
Rust
![]() |
// check-pass
|
||
|
// compile-flags: -Z chalk
|
||
|
|
||
|
trait Foo { }
|
||
|
|
||
|
impl<T: 'static> Foo for T where T: Iterator<Item = i32> { }
|
||
|
|
||
|
trait Bar {
|
||
|
type Assoc;
|
||
|
}
|
||
|
|
||
|
impl<T> Bar for T where T: Iterator<Item = i32> {
|
||
|
type Assoc = Vec<T>;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|