From 6e30db469fe4e7efcdbd0011695490b09184e786 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 1 Aug 2013 12:00:24 -0700 Subject: [PATCH] test: add testcase, close #4929 which was already fixed. --- src/test/run-pass/issue-4929.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/run-pass/issue-4929.rs diff --git a/src/test/run-pass/issue-4929.rs b/src/test/run-pass/issue-4929.rs new file mode 100644 index 0000000000000..638c9beefde0a --- /dev/null +++ b/src/test/run-pass/issue-4929.rs @@ -0,0 +1,11 @@ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn make_adder(x: int) -> @fn(int) -> int { |y| x + y }