mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
11 lines
129 B
Rust
11 lines
129 B
Rust
//@ compile-flags:-O
|
|
|
|
fn foo() {}
|
|
|
|
pub static ADDR: fn() = foo;
|
|
|
|
#[inline(always)]
|
|
pub fn bar(x: fn()) -> bool {
|
|
x == ADDR
|
|
}
|