]> git.lizzy.rs Git - rust.git/commit
Suggest fn ptr rather than fn item and suggest to use `Fn` trait bounds rather than...
authorThePuzzlemaker <tpzker@thepuzzlemaker.info>
Tue, 22 Dec 2020 02:23:21 +0000 (20:23 -0600)
committerThePuzzlemaker <tpzker@thepuzzlemaker.info>
Tue, 22 Dec 2020 19:26:28 +0000 (13:26 -0600)
commit4f6be466fdec69dbf6ce768d41a43acf0fc3b47b
tree1233b8fb27b856bc15bcff68dfaacc74e66a36f2
parent353f3a38460d3c2222d2ab29143f48595b1a32a9
Suggest fn ptr rather than fn item and suggest to use `Fn` trait bounds rather than the unique closure type in E0121

This is a squash of the titular commit along with these minor commits:
- Improve note
- Improve note pt2
compiler/rustc_typeck/src/collect.rs