about summary refs log tree commit diff
path: root/tests/ui/auto-traits
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-28 21:57:48 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-12-07 21:37:13 +0000
commitd860e5b088a0030c55b8850d10ab231d86fc2969 (patch)
treedbe5227332778bf6d7b6ebcd07b5eddeb162cac5 /tests/ui/auto-traits
parent3f2a63a68bbf4e84f7e409659bb64bdd75db39e5 (diff)
downloadrust-d860e5b088a0030c55b8850d10ab231d86fc2969.tar.gz
rust-d860e5b088a0030c55b8850d10ab231d86fc2969.zip
Mention type parameter in more cases and don't suggest ~const bound already there
Diffstat (limited to 'tests/ui/auto-traits')
-rw-r--r--tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
index 1c73bd26267..27e38ce06a4 100644
--- a/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
+++ b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
@@ -30,7 +30,7 @@ LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
    |         ^                            - you could clone this value
    |         |
    |         consider constraining this type parameter with `Clone`
-help: consider further restricting this bound with trait `Copy`
+help: consider further restricting type parameter `T` with trait `Copy`
    |
 LL | fn copy<T: Magic + Copy>(x: T) -> (T, T) { (x, x) }
    |                  ++++++