diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-10 22:18:30 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-12-04 23:13:58 +0100 |
| commit | 95fb9ee3cda483f9b3112ec64c2fafd34096da22 (patch) | |
| tree | b6baea6a42ec2526021907536aa0ee18dda7e257 | |
| parent | 646f58a7e1985ca935c3d95a003f23fb81831dd3 (diff) | |
| download | rust-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.stderr | 2 |
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! |
