Addressed PR coments

This commit is contained in:
ayushmishra2005 2021-05-14 17:30:26 +05:30
parent 7d83f98ff3
commit 9013bf299e

View file

@ -31,7 +31,10 @@ fn option_as_ref_deref() {
}
fn match_like_matches() {
let _y = matches!(Some(5), Some(0));
let _y = match Some(5) {
Some(0) => true,
_ => false,
};
}
fn match_same_arms() {