mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
293 B
Rust
18 lines
293 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Zmir-opt-level=4 --emit=mir
|
|
#![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() {
|
|
}
|