Skip to content

Commit cdbfd3e

Browse files
author
ludfo774
authored
Add test of matches macro for trailing commas
1 parent a85de16 commit cdbfd3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/macros/macro-comma-support-rpass.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ fn line() {
192192
let _ = line!();
193193
}
194194

195+
#[test]
196+
fn matches() {
197+
let _ = matches!(1, x if x > 0);
198+
let _ = matches!(1, x if x > 0,);
199+
}
200+
195201
#[test]
196202
fn module_path() {
197203
let _ = module_path!();

0 commit comments

Comments
 (0)