Suggest considering casting fn item as fn pointer in more cases
This commit is contained in:
parent
f2a35426b6
commit
4203627ced
8 changed files with 114 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue