We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ffix_only_once_for_duplicates
1 parent 37ac0c2 commit c5fee7dCopy full SHA for c5fee7d
tests/testsuite/fix.rs
@@ -2410,7 +2410,8 @@ fn fix_only_once_for_duplicates() {
2410
r#"
2411
macro_rules! foo {
2412
() => {
2413
- &1;
+ let x = Box::new(1);
2414
+ std::mem::forget(&x);
2415
};
2416
}
2417
@@ -2438,7 +2439,8 @@ fn main() {
2438
2439
2440
2441
- let _ = &1;
2442
2443
+ let _ = &x;
2444
2445
2446
0 commit comments