1
Fork 0

Implement CastKind::ClosureFnPointer

This commit is contained in:
bjorn3 2019-02-24 18:15:23 +01:00
parent 25f3ef5ff9
commit 89666d9818
2 changed files with 20 additions and 2 deletions

View file

@ -190,4 +190,6 @@ fn main() {
[] => assert_eq!(0u32, 1),
[_, ref y..] => assert_eq!(&x[1] as *const u32 as usize, &y[0] as *const u32 as usize),
}
assert_eq!(((|()| 42u8) as fn(()) -> u8)(()), 42);
}