about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorYutaro Ohno <yutaro.ono.418@gmail.com>2022-11-17 20:38:40 +0900
committerYutaro Ohno <yutaro.ono.418@gmail.com>2022-12-29 15:08:30 +0900
commite5281c389d5bffabaa0a9762314808fb6c2803a3 (patch)
tree17881a3cf4ac329aca417896b9ac6597f85a4f15 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentb15ca6635f752fefebfd101aa944c6167128183c (diff)
downloadrust-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