mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() ``` help: consider restricting type parameter `T` with traits `Copy` and `Trait` | LL | fn duplicate_custom<T: Copy + Trait>(t: S<T>) -> (S<T>, S<T>) { | ++++++++++++++ ``` ``` help: consider restricting type parameter `V` with trait `Copy` | LL | fn index<'a, K, V: std::marker::Copy>(map: &'a HashMap<K, V>, k: K) -> &'a V { | +++++++++++++++++++ ``` |
||
---|---|---|
.. | ||
const-in-super-trait-and-item-bound.rs | ||
lifetime-generic-user-impl-normalize.rs | ||
lifetime-generic-user-impl.rs | ||
projections-in-super-trait-bound-unsatisfied.rs | ||
projections-in-super-trait-bound-unsatisfied.stderr | ||
unconstrained-param-in-impl-ambiguity.rs | ||
unconstrained-param-in-impl-ambiguity.stderr |