2 // https://github.com/rust-lang/rust/issues/79076
4 use std::cmp::PartialEq;
6 #[derive(Clone, Eq)] //~ ERROR [E0277]
7 pub struct Struct<T: std::clone::Clone>(T);
9 impl<T: Clone, U> PartialEq<U> for Struct<T>
11 U: Into<Struct<T>> + Clone
13 fn eq(&self, _other: &U) -> bool {