about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-10-10 22:18:30 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-12-04 23:13:58 +0100
commit95fb9ee3cda483f9b3112ec64c2fafd34096da22 (patch)
treeb6baea6a42ec2526021907536aa0ee18dda7e257
parent646f58a7e1985ca935c3d95a003f23fb81831dd3 (diff)
downloadrust-95fb9ee3cda483f9b3112ec64c2fafd34096da22.tar.gz
rust-95fb9ee3cda483f9b3112ec64c2fafd34096da22.zip
Include output type in fn trait bounds.
-rw-r--r--src/test/ui/did_you_mean/bad-assoc-ty.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/did_you_mean/bad-assoc-ty.stderr b/src/test/ui/did_you_mean/bad-assoc-ty.stderr
index 0d37220bc82..fc63e379eb8 100644
--- a/src/test/ui/did_you_mean/bad-assoc-ty.stderr
+++ b/src/test/ui/did_you_mean/bad-assoc-ty.stderr
@@ -103,7 +103,7 @@ warning: trait objects without an explicit `dyn` are deprecated
   --> $DIR/bad-assoc-ty.rs:33:10
    |
 LL | type H = Fn(u8) -> (u8)::Output;
-   |          ^^^^^^ help: use `dyn`: `<dyn Fn(u8)>`
+   |          ^^^^^^^^^^^^^^ help: use `dyn`: `<dyn Fn(u8) -> (u8)>`
    |
    = note: `#[warn(bare_trait_objects)]` on by default
    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!