mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 13:49:13 +00:00
13 lines
200 B
Rust
13 lines
200 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Zvalidate-mir
|
|
|
|
#![allow(unpredictable_function_pointer_comparisons)]
|
|
|
|
fn foo(_a: &str) {}
|
|
|
|
fn main() {
|
|
let x = foo as fn(&'static str);
|
|
|
|
let _ = x == foo;
|
|
}
|