mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-27 07:03:45 +00:00
:: is allowed to start an expression. Close #762.
This commit is contained in:
parent
c141718952
commit
f0e29c92aa
@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool {
|
||||
NOT. { true }
|
||||
BINOP(MINUS.) { true }
|
||||
BINOP(STAR.) { true }
|
||||
MOD_SEP. { true }
|
||||
_ { 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…
Reference in New Issue
Block a user