rust/tests/ui/statics/auxiliary/static-function-pointer-aux.rs

5 lines
119 B
Rust

pub fn f(x: isize) -> isize { -x }
pub static F: fn(isize) -> isize = f;
pub static mut MutF: fn(isize) -> isize = f;