mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Add test
This commit is contained in:
parent
0c4efbb2b6
commit
50f288db92
@ -124,6 +124,8 @@ mod tests {
|
||||
expect_err("invalid", "subtree");
|
||||
|
||||
is_valid("($i:ident) => ()");
|
||||
is_valid("($($i:ident)*) => ($_)");
|
||||
|
||||
expect_err("$i:ident => ()", "subtree");
|
||||
expect_err("($i:ident) ()", "`=`");
|
||||
expect_err("($($i:ident)_) => ()", "repeat");
|
||||
|
Loading…
Reference in New Issue
Block a user