]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / where-clauses / where-clause-constraints-are-local-for-inherent-impl.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:13:22
3    |
4 LL |         require_copy(self.x);
5    |         ------------ ^^^^^^ the trait `Copy` is not implemented for `T`
6    |         |
7    |         required by a bound introduced by this call
8    |
9 note: required by a bound in `require_copy`
10   --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:1:20
11    |
12 LL | fn require_copy<T: Copy>(x: T) {}
13    |                    ^^^^ required by this bound in `require_copy`
14 help: consider restricting type parameter `T`
15    |
16 LL | impl<T: std::marker::Copy> Foo<T> {
17    |       +++++++++++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.