about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorkadmin <julianknodt@gmail.com>2023-01-10 06:08:18 +0000
committerkadmin <julianknodt@gmail.com>2023-01-14 10:37:56 +0000
commit2de9d679adcc2740f490e8f702b2d227be2de30a (patch)
tree610032e2ac9ce46e94ad6565be35d9f7434003a7 /compiler/rustc_parse/src
parentc0b87359599629d69a7b37318088dac3a5d67c9c (diff)
downloadrust-2de9d679adcc2740f490e8f702b2d227be2de30a.tar.gz
rust-2de9d679adcc2740f490e8f702b2d227be2de30a.zip
Add note when `FnPtr` vs. `FnDef` impl trait
I encountered an instance where an `FnPtr` implemented a trait, but I was passing an `FnDef`. To
the end user, there is really no way to differentiate each of them, but it is necessary to cast
to the generic function in order to compile. It is thus useful to suggest `as` in the help note,
(even if the Fn output implements the trait).
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions