diff options
| author | Yutaro Ohno <yutaro.ono.418@gmail.com> | 2022-11-17 20:38:40 +0900 |
|---|---|---|
| committer | Yutaro Ohno <yutaro.ono.418@gmail.com> | 2022-12-29 15:08:30 +0900 |
| commit | e5281c389d5bffabaa0a9762314808fb6c2803a3 (patch) | |
| tree | 17881a3cf4ac329aca417896b9ac6597f85a4f15 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | b15ca6635f752fefebfd101aa944c6167128183c (diff) | |
| download | rust-e5281c389d5bffabaa0a9762314808fb6c2803a3.tar.gz rust-e5281c389d5bffabaa0a9762314808fb6c2803a3.zip | |
Provide a better error for `Fn` traits with lifetime params
Currently, given `Fn`-family traits with lifetime params like `Fn<'a>(&'a str) -> bool`, many unhelpful errors show up. These are a bit confusing. This commit allows these situations to suggest simply using higher-ranked trait bounds like `for<'a> Fn(&'a str) -> bool`.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
