]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / where-clauses / where-clause-constraints-are-local-for-trait-impl.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/where-clause-constraints-are-local-for-trait-impl.rs:18: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-trait-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> for Bar<T> {
17    |       +++++++++++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.