From 23154db8371e5277c373578690b3a79d15e13180 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Thu, 11 Apr 2019 07:22:05 +1000 Subject: [PATCH] fix up unused wrappingn_add in compile-pass test --- .../closure-expected-type/expect-infer-supply-two-infers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs b/src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs index fb0bc3c436d..6d5a9876c37 100644 --- a/src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs +++ b/src/test/run-pass/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs @@ -12,7 +12,7 @@ fn expect_free_supply_free<'x>(x: &'x u32) { x.push(22_u32); // ...since we now know the type of `y` and can resolve the method call. - y.wrapping_add(1); + let _ = y.wrapping_add(1); }); }