os-rust/src/test/pretty/do1.rs

6 lines
101 B
Rust
Raw Normal View History

2013-02-08 02:56:49 +09:00
// pp-exact
2012-06-29 15:37:17 -07:00
fn f<F>(f: F) where F: Fn(isize) { f(10) }
2012-06-29 15:37:17 -07:00
fn main() { f(|i| { assert_eq!(i , 10) }) }