Skip to content

Commit 23154db

Browse files
committed
fix up unused wrappingn_add in compile-pass test
1 parent 53d2473 commit 23154db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn expect_free_supply_free<'x>(x: &'x u32) {
1212
x.push(22_u32);
1313

1414
// ...since we now know the type of `y` and can resolve the method call.
15-
y.wrapping_add(1);
15+
let _ = y.wrapping_add(1);
1616
});
1717
}
1818

0 commit comments

Comments
 (0)