2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
|
|
|
|
//@ compile-flags: -Zvalidate-mir
|
2022-04-13 05:42:28 -04:00
|
|
|
|
2023-12-10 15:51:06 +01:00
|
|
|
#![allow(unpredictable_function_pointer_comparisons)]
|
|
|
|
|
|
2022-04-13 05:42:28 -04:00
|
|
|
fn foo(_a: &str) {}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let x = foo as fn(&'static str);
|
|
|
|
|
|
|
|
|
|
let _ = x == foo;
|
|
|
|
|
}
|