Allow higher-ranked fn sigs in ValuePairs
This commit is contained in:
parent
959b2c703d
commit
8cfd249198
11 changed files with 48 additions and 27 deletions
|
@ -2333,7 +2333,10 @@ impl CheckAttrVisitor<'_> {
|
|||
&mut diag,
|
||||
&cause,
|
||||
None,
|
||||
Some(ValuePairs::Sigs(ExpectedFound { expected: expected_sig, found: sig })),
|
||||
Some(ValuePairs::PolySigs(ExpectedFound {
|
||||
expected: ty::Binder::dummy(expected_sig),
|
||||
found: ty::Binder::dummy(sig),
|
||||
})),
|
||||
terr,
|
||||
false,
|
||||
false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue