]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-51512.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / nll / issue-51512.stderr
1 error[E0382]: use of moved value: `range`
2   --> $DIR/issue-51512.rs:7:13
3    |
4 LL |     let r = range;
5    |             ----- value moved here
6 LL |     let x = range.start;
7    |             ^^^^^^^^^^^ value used here after move
8    |
9    = note: move occurs because `range` has type `std::ops::Range<i32>`, which does not implement the `Copy` trait
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.