]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/wf-in-fn-arg.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / wf / wf-in-fn-arg.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/wf-in-fn-arg.rs:10:15
3    |
4 LL | fn bar<T>(_: &MustBeCopy<T>)
5    |               ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
6    |
7 note: required by a bound in `MustBeCopy`
8   --> $DIR/wf-in-fn-arg.rs:6:21
9    |
10 LL | struct MustBeCopy<T:Copy> {
11    |                     ^^^^ required by this bound in `MustBeCopy`
12 help: consider restricting type parameter `T`
13    |
14 LL | fn bar<T: std::marker::Copy>(_: &MustBeCopy<T>)
15    |         +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.