mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add test
This commit is contained in:
parent
0c4efbb2b6
commit
50f288db92
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ mod tests {
|
||||||
expect_err("invalid", "subtree");
|
expect_err("invalid", "subtree");
|
||||||
|
|
||||||
is_valid("($i:ident) => ()");
|
is_valid("($i:ident) => ()");
|
||||||
|
is_valid("($($i:ident)*) => ($_)");
|
||||||
|
|
||||||
expect_err("$i:ident => ()", "subtree");
|
expect_err("$i:ident => ()", "subtree");
|
||||||
expect_err("($i:ident) ()", "`=`");
|
expect_err("($i:ident) ()", "`=`");
|
||||||
expect_err("($($i:ident)_) => ()", "repeat");
|
expect_err("($($i:ident)_) => ()", "repeat");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue