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

Commit 9078d49

Browse files
authored
Merge pull request #172 from ehuss/update-error-new-rustc
Update tests for `bare_trait_objects` warning.
2 parents 836108f + b9c2ea2 commit 9078d49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/everything/E0178.fixed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
trait Foo {}
44

55
struct Bar<'a> {
6-
w: &'a (Foo + Send),
6+
w: &'a (dyn Foo + Send),
77
}
88

99
fn main() {

tests/everything/E0178.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
trait Foo {}
44

55
struct Bar<'a> {
6-
w: &'a Foo + Send,
6+
w: &'a dyn Foo + Send,
77
}
88

99
fn main() {

tests/everything/closure-immutable-outer-variable.fixed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Point at the captured immutable outer variable
1212

13-
fn foo(mut f: Box<FnMut()>) {
13+
fn foo(mut f: Box<dyn FnMut()>) {
1414
f();
1515
}
1616

0 commit comments

Comments
 (0)