Skip to content

Commit f0e29c9

Browse files
committed
:: is allowed to start an expression. Close #762.
1 parent c141718 commit f0e29c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/comp/syntax/parse/token.rs

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool {
201201
NOT. { true }
202202
BINOP(MINUS.) { true }
203203
BINOP(STAR.) { true }
204+
MOD_SEP. { true }
204205
_ { false }
205206
}
206207
}

src/test/run-pass/expr-scope.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Regression test for issue #762
2+
// xfail-stage0
3+
4+
fn f() { }
5+
fn main() { ret ::f(); }

0 commit comments

Comments
 (0)