1
Fork 0

Use the right type when coercing fn items to pointers

This commit is contained in:
Michael Goulet 2024-08-12 11:59:04 -04:00
parent 850bcbdc2e
commit 5df13af56f
7 changed files with 26 additions and 9 deletions

View file

@ -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);