rust/tests/ui/chalkify/lower_impl.rs
2023-01-11 09:32:08 +00:00

18 lines
255 B
Rust

// check-pass
// compile-flags: -Z trait-solver=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() {
}