mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
:: is allowed to start an expression. Close #762.
This commit is contained in:
@@ -201,6 +201,7 @@ fn to_str(r: lexer::reader, t: token) -> str {
|
||||
NOT. { true }
|
||||
BINOP(MINUS.) { true }
|
||||
BINOP(STAR.) { true }
|
||||
MOD_SEP. { true }
|
||||
_ { false }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// Regression test for issue #762
|
||||
// xfail-stage0
|
||||
|
||||
fn f() { }
|
||||
fn main() { ret ::f(); }
|
||||
Reference in New Issue
Block a user