diff options
Diffstat (limited to 'src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs')
-rw-r--r-- | src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs b/src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs deleted file mode 100644 index 4b42f9d4c..000000000 --- a/src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Regression test for #80913. - -fn main() { - let mut x = 42_i32; - let mut opt = Some(&mut x); - for _ in 0..5 { - if let Some(mut _x) = opt {} - //~^ ERROR: use of moved value - } -} |