fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2// https://github.com/rust-lang/rust/issues/79076 3 4use std::cmp::PartialEq; 5 6#[derive(Clone, Eq)] //~ ERROR [E0277] 7pub struct Struct<T: std::clone::Clone>(T); 8 9impl<T: Clone, U> PartialEq<U> for Struct<T> 10where 11 U: Into<Struct<T>> + Clone 12{ 13 fn eq(&self, _other: &U) -> bool { 14 todo!() 15 } 16} 17 18fn main() {}