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() { }