mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 12:54:00 +00:00
fix: emit parser error for missing argument list
This commit is contained in:
parent
0113bc9388
commit
c495e3f00f
@ -530,6 +530,9 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
|
||||
generic_args::opt_generic_arg_list(p, true);
|
||||
if p.at(T!['(']) {
|
||||
arg_list(p);
|
||||
} else {
|
||||
// emit an error when argument list is missing
|
||||
p.error("expected argument list");
|
||||
}
|
||||
m.complete(p, METHOD_CALL_EXPR)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user