Add test of matches macro for trailing commas
This commit is contained in:
parent
a85de162a5
commit
cdbfd3e011
@ -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!();
|
||||
|
Loading…
Reference in New Issue
Block a user