mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
test: add method_call_missing_argument_list error test
This commit is contained in:
parent
c495e3f00f
commit
864c3d5880
3 changed files with 66 additions and 0 deletions
|
@ -532,6 +532,12 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
|
|||
arg_list(p);
|
||||
} else {
|
||||
// emit an error when argument list is missing
|
||||
|
||||
// test_err method_call_missing_argument_list
|
||||
// fn func() {
|
||||
// foo.bar::<>
|
||||
// foo.bar::<i32>;
|
||||
// }
|
||||
p.error("expected argument list");
|
||||
}
|
||||
m.complete(p, METHOD_CALL_EXPR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue