mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
24 lines
288 B
Rust
24 lines
288 B
Rust
![]() |
//@ compile-flags: -Znext-solver
|
||
|
//@ check-pass
|
||
|
|
||
|
// Regression test for #119608.
|
||
|
|
||
|
pub trait Foo {}
|
||
|
|
||
|
pub trait Bar {
|
||
|
type Assoc;
|
||
|
}
|
||
|
|
||
|
impl<T: Foo> Bar for T {
|
||
|
type Assoc = T;
|
||
|
}
|
||
|
|
||
|
pub fn foo<I>(_input: <I as Bar>::Assoc)
|
||
|
where
|
||
|
I: Bar,
|
||
|
<I as Bar>::Assoc: Foo,
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main() {}
|