Skip to content

Commit 1723aa4

Browse files
committed
Do not assume anything about repeated reification of generic functions.
1 parent 44d1839 commit 1723aa4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/pass/function_pointers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ fn main() {
7575
let g = f as fn() -> i32;
7676
assert!(return_fn_ptr(g) == g);
7777
assert!(return_fn_ptr(g) as unsafe fn() -> i32 == g as fn() -> i32 as unsafe fn() -> i32);
78-
assert!(return_fn_ptr(f) != f);
7978

8079
// Any non-null value is okay for function pointers.
8180
unsafe {

0 commit comments

Comments
 (0)