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