From fb6895836f2e3fb5cbaee1e08ccf4fc24566cdd2 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 11 May 2017 15:36:27 +0200 Subject: [PATCH] Address PR comments --- tests/ui/map_clone.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ui/map_clone.rs b/tests/ui/map_clone.rs index a56e9aa3cab..a71a3067d25 100644 --- a/tests/ui/map_clone.rs +++ b/tests/ui/map_clone.rs @@ -97,7 +97,9 @@ fn map_clone_deref() { let _: Option = x.as_ref().map(|y| **y); } -fn main() { - // used to be a false positive - vec![1].iter_mut().map(|x| *x); +// stuff that used to be a false positive +fn former_false_positive() { + vec![1].iter_mut().map(|x| *x); // #443 } + +fn main() { }