fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
480 B15 linesraw
1error[E0382]: use of moved value: `t`
2  --> $DIR/issue-67123.rs:2:13
3   |
4LL | fn foo<T>(t: T) {
5   |        - help: consider restricting this bound: `T: Copy`
6LL |     || { t; t; };
7   |          -  ^ value used here after move
8   |          |
9   |          value moved here
10   |
11   = note: move occurs because `t` has type `T`, which does not implement the `Copy` trait
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0382`.