summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-29 18:24:29 +0100
committerGitHub <noreply@github.com>2022-12-29 18:24:29 +0100
commit81c2b7280fd78b0bc780f382c9cf12ace244e3dc (patch)
tree0e16d32a9bce04b2184771790f7709e053f2d169 /tests/rustdoc-js-std/parser-errors.js
parent29d76cc6f5064e393440019198328b4424302633 (diff)
parente5281c389d5bffabaa0a9762314808fb6c2803a3 (diff)
downloadrust-81c2b7280fd78b0bc780f382c9cf12ace244e3dc.tar.gz
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/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions