diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index 35bd1f1494a..b9faac40dc3 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool { NOT. { true } BINOP(MINUS.) { true } BINOP(STAR.) { true } + MOD_SEP. { true } _ { false } } } diff --git a/src/test/run-pass/expr-scope.rs b/src/test/run-pass/expr-scope.rs new file mode 100644 index 00000000000..3385b445d6b --- /dev/null +++ b/src/test/run-pass/expr-scope.rs @@ -0,0 +1,5 @@ +// Regression test for issue #762 +// xfail-stage0 + +fn f() { } +fn main() { ret ::f(); } \ No newline at end of file