Use the right type when coercing fn items to pointers
This commit is contained in:
parent
850bcbdc2e
commit
5df13af56f
7 changed files with 26 additions and 9 deletions
|
@ -9,7 +9,7 @@ fn main() -> () {
|
|||
|
||||
bb0: {
|
||||
StorageLive(_1);
|
||||
_1 = foo as for<'a, 'b> fn(&'a (), &'b ()) (PointerCoercion(ReifyFnPointer));
|
||||
_1 = foo as for<'a> fn(&'a (), &'a ()) (PointerCoercion(ReifyFnPointer));
|
||||
FakeRead(ForLet(None), _1);
|
||||
_0 = const ();
|
||||
StorageDead(_1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue