1
Fork 0

Suggest considering casting fn item as fn pointer in more cases

This commit is contained in:
mu001999 2024-11-23 23:47:45 +08:00
parent f2a35426b6
commit 4203627ced
8 changed files with 114 additions and 6 deletions

View file

@ -1498,6 +1498,12 @@ pub struct FnConsiderCasting {
pub casting: String,
}
#[derive(Subdiagnostic)]
#[help(trait_selection_fn_consider_casting_both)]
pub struct FnConsiderCastingBoth<'a> {
pub sig: Binder<'a, FnSig<'a>>,
}
#[derive(Subdiagnostic)]
pub enum SuggestAccessingField<'a> {
#[suggestion(