From: TheDoctor314 <64731940+TheDoctor314@users.noreply.github.com> Date: Thu, 11 Nov 2021 08:46:29 +0000 (+0530) Subject: Add generic bounds in test X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e0e8d877c0f4908e877b8ad7ea82acc8cf90be9b;p=rust.git Add generic bounds in test --- diff --git a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs index 7aeaedf5f05..1f28ecc755f 100644 --- a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs +++ b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs @@ -1079,18 +1079,18 @@ impl Default for Foo { } #[test] - fn add_custom_impl_clone_generic_tuple_struct() { + fn add_custom_impl_clone_generic_tuple_struct_with_bounds() { check_assist( replace_derive_with_manual_impl, r#" //- minicore: clone #[derive(Clo$0ne)] -struct Foo(T, usize); +struct Foo(T, usize); "#, r#" -struct Foo(T, usize); +struct Foo(T, usize); -impl Clone for Foo { +impl Clone for Foo { $0fn clone(&self) -> Self { Self(self.0.clone(), self.1.clone()) }