X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fredundant_clone.fixed;h=16b40dcd902869d7184cb1d6b384139166d04380;hb=a4ede72b3d2bea7ff3877e431139e7ae7c11d276;hp=2d711082746e73aab40867f0bcc2285137e5aca2;hpb=251c3b64dab8982be5d0d002fe695f693ec4a5ab;p=rust.git diff --git a/tests/ui/redundant_clone.fixed b/tests/ui/redundant_clone.fixed index 2d711082746..16b40dcd902 100644 --- a/tests/ui/redundant_clone.fixed +++ b/tests/ui/redundant_clone.fixed @@ -196,7 +196,7 @@ fn clone_then_move_cloned() { fn foo(_: &Alpha, _: F) {} let x = Alpha; // ok, data is moved while the clone is in use. - foo(&x.clone(), move || { + foo(&x, move || { let _ = x; });