mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
18 lines
332 B
Rust
18 lines
332 B
Rust
//@ run-rustfix
|
|
// https://github.com/rust-lang/rust/issues/79076
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(Clone, Eq)] //~ ERROR [E0277]
|
|
pub struct Struct<T: std::clone::Clone>(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() {}
|