mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
40ae34194c
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
17 lines
311 B
Rust
17 lines
311 B
Rust
// run-rustfix
|
|
// https://github.com/rust-lang/rust/issues/79076
|
|
|
|
#[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() {}
|