7 lines
116 B
Rust
7 lines
116 B
Rust
// run-pass
|
|
|
|
fn something<F>(f: F) where F: FnOnce() { f(); }
|
|
pub fn main() {
|
|
something(|| println!("hi!") );
|
|
}
|