diff options
Diffstat (limited to 'src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs')
-rw-r--r-- | src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs b/src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs deleted file mode 100644 index ac547293c..000000000 --- a/src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs +++ /dev/null @@ -1,12 +0,0 @@ -// check-pass - -#![deny(unused_braces)] - -fn main() { - let mut a = Some(3); - // Shouldn't warn below `a`. - while let Some(ref mut v) = {a} { - a.as_mut().map(|a| std::mem::swap(a, v)); - break; - } -} |