Add test of matches macro for trailing commas

This commit is contained in:
ludfo774 2022-05-11 16:42:16 +02:00 committed by GitHub
parent a85de162a5
commit cdbfd3e011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,6 +192,12 @@ fn line() {
let _ = line!();
}
#[test]
fn matches() {
let _ = matches!(1, x if x > 0);
let _ = matches!(1, x if x > 0,);
}
#[test]
fn module_path() {
let _ = module_path!();