]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/issue-67123.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / 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 help: consider restricting this type parameter with `T: Copy`
10 --> $DIR/issue-67123.rs:1:8
11 |
12 LL | fn foo<T>(t: T) {
13 | ^
14 = note: move occurs because `t` has type `T`, which does not implement the `Copy` trait
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0382`.