This commit is contained in:
Esteban Küber 2026-01-18 21:43:18 +00:00
parent 20000ca25a
commit 23b766ce63
2 changed files with 3 additions and 3 deletions

View file

@ -1937,7 +1937,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
self.type_implements_trait_shallow(clone_trait_did, expected_ty, self.param_env)
{
let manually_impl = "consider manually implementing `Clone` to avoid the \
implict type parameter bounds";
implicit type parameter bounds";
match &errors[..] {
[] => {}
[error] => {

View file

@ -22,7 +22,7 @@ LL | struct ContainsRc<T, K> {
| ^ ^ derive introduces an implicit unsatisfied trait bound `K: Clone`
| |
| derive introduces an implicit unsatisfied trait bound `T: Clone`
= help: consider manually implementing `Clone` to avoid the implict type parameter bounds
= help: consider manually implementing `Clone` to avoid the implicit type parameter bounds
error[E0308]: mismatched types
--> $DIR/derive-implicit-bound-on-clone.rs:20:5
@ -46,7 +46,7 @@ LL | #[derive(Clone)]
| ----- in this derive macro expansion
LL | struct ContainsRcSingle<T> {
| ^ derive introduces an implicit `T: Clone` bound
= help: consider manually implementing `Clone` to avoid the implict type parameter bounds
= help: consider manually implementing `Clone` to avoid the implicit type parameter bounds
error: aborting due to 2 previous errors