2024-07-12 20:16:30 -05:00
|
|
|
//@ check-pass
|
2024-07-12 19:36:21 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/100620
|
|
|
|
|
2022-08-17 20:12:46 -05:00
|
|
|
pub trait Bar<S> {}
|
|
|
|
|
|
|
|
pub trait Qux<T> {}
|
|
|
|
|
|
|
|
pub trait Foo<T, S> {
|
|
|
|
fn bar()
|
|
|
|
where
|
|
|
|
T: Bar<S>,
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Concrete;
|
|
|
|
|
|
|
|
impl<S> Foo<(), S> for Concrete {}
|
|
|
|
|
|
|
|
impl<T, S> Bar<S> for T where S: Qux<T> {}
|
|
|
|
|
|
|
|
impl<T, S> Qux<T> for S where T: Bar<S> {}
|