summaryrefslogtreecommitdiffstats
path: root/src/test/ui/expr-scope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/expr-scope.rs')
-rw-r--r--src/test/ui/expr-scope.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/expr-scope.rs b/src/test/ui/expr-scope.rs
new file mode 100644
index 000000000..9976b6814
--- /dev/null
+++ b/src/test/ui/expr-scope.rs
@@ -0,0 +1,7 @@
+// run-pass
+// Regression test for issue #762
+
+// pretty-expanded FIXME #23616
+
+pub fn f() { }
+pub fn main() { return ::f(); }