Add test of matches macro for trailing commas
This commit is contained in:
parent
a85de162a5
commit
cdbfd3e011
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue