blob: 17259dd687c6c7502832c7ae517faa7e038a9648 [file]
//@ run-rustfix
// https://github.com/rust-lang/rust/issues/79076
#[derive(Clone, Eq)]
pub struct Struct<T: std::clone::Clone>(T); //~ ERROR [E0277]
impl<T: Clone, U> PartialEq<U> for Struct<T>
where
U: Into<Struct<T>> + Clone
{
fn eq(&self, _other: &U) -> bool {
todo!()
}
}
fn main() {}