diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs index db0fef2..973b54a 100644 --- a/tests/testsuite/fix.rs +++ b/tests/testsuite/fix.rs @@ -1,5 +1,5 @@ //! Tests for the `cargo fix` command. -//! +//! use std::env; use std::path::{Path, PathBuf}; @@ -2619,7 +2619,8 @@ fn fix_only_once_for_duplicates() { r#" macro_rules! foo { () => { - &1; + let x = Box::new(1); + std::mem::forget(&x); }; } @@ -2646,7 +2647,8 @@ fn main() { macro_rules! foo { () => { - let _ = &1; + let x = Box::new(1); + let _ = &x; }; }