]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-in-fn-type-arg.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-in-fn-type-arg.stderr
1 error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
2 --> $DIR/wf-in-fn-type-arg.rs:9:5
3 |
4 LL | struct MustBeCopy<T:Copy> {
5 | ------------------------- required by `MustBeCopy`
6 ...
7 LL | x: fn(MustBeCopy<T>)
8 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
9 |
10 = help: consider adding a `where T: std::marker::Copy` bound
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.