fix subtle bug in NLL type checker
The bug was revealed by the behavior of the old-lub-glb-hr-noteq1.rs test. The old-lub-glb-hr-noteq2 test shows the current 'order dependent' behavior of coercions around higher-ranked functions, at least when running with `-Zborrowck=mir`. Also, run compare-mode=nll.
This commit is contained in:
parent
c88a76e37b
commit
6929013b85
30 changed files with 472 additions and 61 deletions
8
src/test/ui/issues/issue-40000.nll.stderr
Normal file
8
src/test/ui/issues/issue-40000.nll.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: higher-ranked subtype error
|
||||
--> $DIR/issue-40000.rs:6:9
|
||||
|
|
||||
LL | foo(bar);
|
||||
| ^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue