1
Fork 0

Allow higher-ranked fn sigs in ValuePairs

This commit is contained in:
Michael Goulet 2023-09-22 19:47:34 +00:00
parent 959b2c703d
commit 8cfd249198
11 changed files with 48 additions and 27 deletions

View file

@ -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,