]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / diagnostics / closure-origin-tuple-diagnostics-1.rs
1 // edition:2021
2
3 // Check that precise paths are being reported back in the error message.
4
5 fn main() {
6 let mut x = (5, 0);
7 let hello = || {
8 x.0 += 1;
9 };
10
11 let b = hello;
12 let c = hello; //~ ERROR use of moved value: `hello` [E0382]
13 }