mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
ac56007ea7
This reverts commit13314df21b
, reversing changes made to6e534c73c3
.
17 lines
293 B
Rust
17 lines
293 B
Rust
//@ run-rustfix
|
|
// https://github.com/rust-lang/rust/issues/79076
|
|
|
|
#[derive(Clone, Eq)] //~ ERROR [E0277]
|
|
pub struct Struct<T>(T);
|
|
|
|
impl<T: Clone, U> PartialEq<U> for Struct<T>
|
|
where
|
|
U: Into<Struct<T>> + Clone
|
|
{
|
|
fn eq(&self, _other: &U) -> bool {
|
|
todo!()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|