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 { | +++++++++++++++++++ ``` |
||
---|---|---|
.. | ||
kindck-copy.rs | ||
kindck-copy.stderr | ||
kindck-impl-type-params-2.rs | ||
kindck-impl-type-params-2.stderr | ||
kindck-impl-type-params.rs | ||
kindck-impl-type-params.stderr | ||
kindck-inherited-copy-bound.curr.stderr | ||
kindck-inherited-copy-bound.dyn_compatible_for_dispatch.stderr | ||
kindck-inherited-copy-bound.rs | ||
kindck-nonsendable-1.rs | ||
kindck-nonsendable-1.stderr | ||
kindck-send-object1.rs | ||
kindck-send-object1.stderr | ||
kindck-send-object2.rs | ||
kindck-send-object2.stderr | ||
kindck-send-object.rs | ||
kindck-send-object.stderr | ||
kindck-send-owned.rs | ||
kindck-send-owned.stderr | ||
kindck-send-unsafe.rs | ||
kindck-send-unsafe.stderr |