diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-11-28 21:57:48 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-12-07 21:37:13 +0000 |
| commit | d860e5b088a0030c55b8850d10ab231d86fc2969 (patch) | |
| tree | dbe5227332778bf6d7b6ebcd07b5eddeb162cac5 /tests/ui/auto-traits | |
| parent | 3f2a63a68bbf4e84f7e409659bb64bdd75db39e5 (diff) | |
| download | rust-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.stderr | 2 |
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) } | ++++++ |
