Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Update tests for bare_trait_objects warning. #172

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/everything/E0178.fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
trait Foo {}

struct Bar<'a> {
w: &'a (Foo + Send),
w: &'a (dyn Foo + Send),
}

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/everything/E0178.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
trait Foo {}

struct Bar<'a> {
w: &'a Foo + Send,
w: &'a dyn Foo + Send,
}

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/everything/closure-immutable-outer-variable.fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// Point at the captured immutable outer variable

fn foo(mut f: Box<FnMut()>) {
fn foo(mut f: Box<dyn FnMut()>) {
f();
}

Expand Down