summaryrefslogtreecommitdiffstats
path: root/tests/ui/polymorphization
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/polymorphization')
-rw-r--r--tests/ui/polymorphization/drop_shims/simple.rs2
-rw-r--r--tests/ui/polymorphization/drop_shims/transitive.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/polymorphization/drop_shims/simple.rs b/tests/ui/polymorphization/drop_shims/simple.rs
index 2695dc6d4..5f10d5e83 100644
--- a/tests/ui/polymorphization/drop_shims/simple.rs
+++ b/tests/ui/polymorphization/drop_shims/simple.rs
@@ -14,7 +14,7 @@ fn foo<R, S: FnOnce()>(
let bar = || {
let _ = OnDrop(|| ());
};
- let _ = bar();
+ bar();
}
fn main() {
diff --git a/tests/ui/polymorphization/drop_shims/transitive.rs b/tests/ui/polymorphization/drop_shims/transitive.rs
index c22891171..283b8da13 100644
--- a/tests/ui/polymorphization/drop_shims/transitive.rs
+++ b/tests/ui/polymorphization/drop_shims/transitive.rs
@@ -19,7 +19,7 @@ fn foo<R, S: FnOnce()>(
let bar = || {
bar(|| {})
};
- let _ = bar();
+ bar();
}
fn main() {