Skip to content

Commit 95fb9ee

Browse files
committed
Include output type in fn trait bounds.
1 parent 646f58a commit 95fb9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/did_you_mean/bad-assoc-ty.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ warning: trait objects without an explicit `dyn` are deprecated
103103
--> $DIR/bad-assoc-ty.rs:33:10
104104
|
105105
LL | type H = Fn(u8) -> (u8)::Output;
106-
| ^^^^^^ help: use `dyn`: `<dyn Fn(u8)>`
106+
| ^^^^^^^^^^^^^^ help: use `dyn`: `<dyn Fn(u8) -> (u8)>`
107107
|
108108
= note: `#[warn(bare_trait_objects)]` on by default
109109
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!

0 commit comments

Comments
 (0)