diff options
Diffstat (limited to 'src/test/pretty/issue-31073.rs')
-rw-r--r-- | src/test/pretty/issue-31073.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/pretty/issue-31073.rs b/src/test/pretty/issue-31073.rs new file mode 100644 index 000000000..75795f6d5 --- /dev/null +++ b/src/test/pretty/issue-31073.rs @@ -0,0 +1,7 @@ +// pp-exact:issue-31073.pp + +fn main() { + fn f1(x: i32, y: i32) -> i32 { y } + let f: fn(_, i32) -> i32 = f1; + f(1, 2); +} |