summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/validate/issue-95978-validator-lifetime-comparison.rs
blob: cd6c5bf271935a8b13b76fc8a992e44179f0da9e (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass
// compile-flags: -Zvalidate-mir

fn foo(_a: &str) {}

fn main() {
    let x = foo as fn(&'static str);

    let _ = x == foo;
}