]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | // Regression test for issue #75904 |
2 | // Tests that we point at an expression | |
3 | // that required the upvar to be moved, rather than just borrowed. | |
4 | ||
5 | struct NotCopy; | |
6 | ||
7 | fn main() { | |
8 | let mut a = NotCopy; | |
9 | loop { | |
10 | || { //~ ERROR use of moved value | |
11 | &mut a; | |
12 | a; | |
13 | }; | |
14 | } | |
15 | } |