diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-29 18:24:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-29 18:24:29 +0100 |
| commit | 81c2b7280fd78b0bc780f382c9cf12ace244e3dc (patch) | |
| tree | 0e16d32a9bce04b2184771790f7709e053f2d169 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 29d76cc6f5064e393440019198328b4424302633 (diff) | |
| parent | e5281c389d5bffabaa0a9762314808fb6c2803a3 (diff) | |
| download | rust-81c2b7280fd78b0bc780f382c9cf12ace244e3dc.tar.gz rust-81c2b7280fd78b0bc780f382c9cf12ace244e3dc.zip | |
Rollup merge of #104531 - ohno418:recover-fn-traits-with-lifetime-params, r=estebank
Provide a better error and a suggestion for `Fn` traits with lifetime params Given `Fn`-family traits with lifetime params in trait bounds like `fn f(_: impl Fn<'a>(&'a str) -> bool)`, we currently produce many unhelpful errors. This PR allows these situations to suggest simply using Higher-Rank Trait Bounds like `for<'a> Fn(&'a str) -> bool`. Fixes https://github.com/rust-lang/rust/issues/103490.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
