fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
785 B21 linesraw
1error[E0277]: the trait bound `T: Copy` is not satisfied
2  --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:13:22
3   |
4LL |         require_copy(self.x);
5   |         ------------ ^^^^^^ the trait `Copy` is not implemented for `T`
6   |         |
7   |         required by a bound introduced by this call
8   |
9note: required by a bound in `require_copy`
10  --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:1:20
11   |
12LL | fn require_copy<T: Copy>(x: T) {}
13   |                    ^^^^ required by this bound in `require_copy`
14help: consider restricting type parameter `T`
15   |
16LL | impl<T: std::marker::Copy> Foo<T> {
17   |       +++++++++++++++++++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.