:: is allowed to start an expression. Close #762.
This commit is contained in:
parent
c141718952
commit
f0e29c92aa
2 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool {
|
||||||
NOT. { true }
|
NOT. { true }
|
||||||
BINOP(MINUS.) { true }
|
BINOP(MINUS.) { true }
|
||||||
BINOP(STAR.) { true }
|
BINOP(STAR.) { true }
|
||||||
|
MOD_SEP. { true }
|
||||||
_ { false }
|
_ { false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
src/test/run-pass/expr-scope.rs
Normal file
5
src/test/run-pass/expr-scope.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// Regression test for issue #762
|
||||||
|
// xfail-stage0
|
||||||
|
|
||||||
|
fn f() { }
|
||||||
|
fn main() { ret ::f(); }
|
Loading…
Add table
Add a link
Reference in a new issue