blob: 45d519739eba8d3d3d4fbe1e41c36471cbc5e98c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ 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;
}
|