2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
|
|
|
//@ compile-flags: -Zmir-opt-level=4 --emit=mir
|
2022-07-06 10:44:35 -05:00
|
|
|
#![allow(unused)]
|
|
|
|
fn a() -> usize { 0 }
|
|
|
|
|
|
|
|
fn bar(_: u32) {}
|
|
|
|
|
|
|
|
fn baz() -> *const dyn Fn(u32) { unimplemented!() }
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
match () {
|
|
|
|
_ if baz() == &bar as &dyn Fn(u32) => (),
|
|
|
|
() => (),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|