diff options
Diffstat (limited to 'src/test/pretty/do1.rs')
-rw-r--r-- | src/test/pretty/do1.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/pretty/do1.rs b/src/test/pretty/do1.rs new file mode 100644 index 000000000..233ccdb00 --- /dev/null +++ b/src/test/pretty/do1.rs @@ -0,0 +1,5 @@ +// pp-exact + +fn f<F>(f: F) where F: Fn(isize) { f(10) } + +fn main() { f(|i| { assert_eq!(i, 10) }) } |