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