Implement CastKind::ClosureFnPointer
This commit is contained in:
parent
25f3ef5ff9
commit
89666d9818
2 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue