]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/eta.rs
Rollup merge of #85503 - liigo:tooltips, r=GuillaumeGomez
[rust.git] / src / tools / clippy / tests / ui / eta.rs
index f0373f9ccf67336f4c50d47fd8b3ae621477da0c..44be4628cbd34227eb51118c6698aa38f9d67efd 100644 (file)
@@ -48,6 +48,9 @@ fn main() {
     // See #515
     let a: Option<Box<dyn (::std::ops::Deref<Target = [i32]>)>> =
         Some(vec![1i32, 2]).map(|v| -> Box<dyn (::std::ops::Deref<Target = [i32]>)> { Box::new(v) });
+
+    // issue #7224
+    let _: Option<Vec<u32>> = Some(0).map(|_| vec![]);
 }
 
 trait TestTrait {