mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
e5281c389d
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`.