]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-67123.stderr
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / closures / issue-67123.stderr
1 error[E0382]: use of moved value: `t`
2   --> $DIR/issue-67123.rs:2:13
3    |
4 LL |     || { t; t; };
5    |          -  ^ value used here after move
6    |          |
7    |          value moved here
8    |
9    = note: move occurs because `t` has type `T`, which does not implement the `Copy` trait
10 help: consider restricting type parameter `T`
11    |
12 LL | fn foo<T: Copy>(t: T) {
13    |         ++++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0382`.