]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.rs
1 fn require_copy
<T
: Copy
>(x
: T
) {}
5 // Ensure constraints are only attached to methods locally
7 fn needs_copy(self) where T
: Copy
{
14 //~^ ERROR the trait bound `T: Copy` is not satisfied