Do not assume anything about repeated reification of generic functions.
This commit is contained in:
parent
db50bd96e5
commit
644e40f536
1 changed files with 0 additions and 1 deletions
|
|
@ -75,7 +75,6 @@ fn main() {
|
|||
let g = f as fn() -> i32;
|
||||
assert!(return_fn_ptr(g) == g);
|
||||
assert!(return_fn_ptr(g) as unsafe fn() -> i32 == g as fn() -> i32 as unsafe fn() -> i32);
|
||||
assert!(return_fn_ptr(f) != f);
|
||||
|
||||
// Any non-null value is okay for function pointers.
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue