rust/tests/pretty/do1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
100 B
Rust
Raw Normal View History

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