From b9c2ea221ff21d85c336aeab03f405b7f6dc66ca Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 6 Aug 2019 16:22:21 -0700 Subject: [PATCH] Update tests for `bare_trait_objects` warning. --- tests/everything/E0178.fixed.rs | 2 +- tests/everything/E0178.rs | 2 +- tests/everything/closure-immutable-outer-variable.fixed.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/everything/E0178.fixed.rs b/tests/everything/E0178.fixed.rs index e8f3188..07e6117 100644 --- a/tests/everything/E0178.fixed.rs +++ b/tests/everything/E0178.fixed.rs @@ -3,7 +3,7 @@ trait Foo {} struct Bar<'a> { - w: &'a (Foo + Send), + w: &'a (dyn Foo + Send), } fn main() { diff --git a/tests/everything/E0178.rs b/tests/everything/E0178.rs index c04e2a8..24226fe 100644 --- a/tests/everything/E0178.rs +++ b/tests/everything/E0178.rs @@ -3,7 +3,7 @@ trait Foo {} struct Bar<'a> { - w: &'a Foo + Send, + w: &'a dyn Foo + Send, } fn main() { diff --git a/tests/everything/closure-immutable-outer-variable.fixed.rs b/tests/everything/closure-immutable-outer-variable.fixed.rs index 80a5a45..0c41b6a 100644 --- a/tests/everything/closure-immutable-outer-variable.fixed.rs +++ b/tests/everything/closure-immutable-outer-variable.fixed.rs @@ -10,7 +10,7 @@ // Point at the captured immutable outer variable -fn foo(mut f: Box) { +fn foo(mut f: Box) { f(); }