fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
570 B15 linesraw
1error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2  --> $DIR/wf-inherent-impl-method-where-clause.rs:12:5
3   |
4LL |   trait ExtraCopy<T:Copy> { }
5   |   ----------------------- required by `ExtraCopy`
6...
7LL |   impl<T,U> Foo<T,U> {
8   |          - help: consider restricting this bound: `U: std::marker::Copy`
9LL | /     fn foo(self) where T: ExtraCopy<U>
10LL | |     {}
11   | |______^ the trait `std::marker::Copy` is not implemented for `U`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.