diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 20:20:14 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-13 00:03:31 +0500 |
| commit | 98934707eb7824cd48ee3889d4570c1406c39ba4 (patch) | |
| tree | ea1189bcf19374f2c0c23a546c3133f2999117a9 /tests/ui/parser/syntactic-trailing-commas.rs | |
| parent | 47b8a32ca311e2c441f4e7d747bfd75f0045baa1 (diff) | |
| download | rust-98934707eb7824cd48ee3889d4570c1406c39ba4.tar.gz rust-98934707eb7824cd48ee3889d4570c1406c39ba4.zip | |
cleaned up some tests
Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
Diffstat (limited to 'tests/ui/parser/syntactic-trailing-commas.rs')
| -rw-r--r-- | tests/ui/parser/syntactic-trailing-commas.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/parser/syntactic-trailing-commas.rs b/tests/ui/parser/syntactic-trailing-commas.rs index 53b76fb6037..ba688dffb3c 100644 --- a/tests/ui/parser/syntactic-trailing-commas.rs +++ b/tests/ui/parser/syntactic-trailing-commas.rs @@ -1,3 +1,11 @@ +//! Checks trailing commas are accepted in various places: +//! - Generic parameters in function and struct definitions. +//! - Function and method arguments. +//! - Tuple and array literal expressions. +//! - Tuple and array destructuring patterns, including those with `..`. +//! - Enum variant declarations. +//! - Attributes. + //@ run-pass fn f<T,>(_: T,) {} |
