rust/compiler/rustc_trait_selection
kadmin 2de9d679ad 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).
2023-01-14 10:37:56 +00:00
..
src Add note when FnPtr vs. FnDef impl trait 2023-01-14 10:37:56 +00:00
Cargo.toml