blob: 77d943f23b47e4d5a0eed9be70d4e8303f41d1e7 [file] [log] [blame]
//@ known-bug: #135122
trait Add {
type Output;
fn add(_: (), _: Self::Output) {}
}
trait IsSame<Lhs> {
type Assoc;
}
trait Data {
type Elem;
}
impl<B> IsSame<i16> for f32 where f32: IsSame<B, Assoc = B> {}
impl<A> Add for i64
where
f32: IsSame<A>,
i8: Data<Elem = A>,
{
type Output = <f32 as IsSame<A>>::Assoc;
fn add(_: Data, _: Self::Output) {}
}