mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Addressed PR coments
This commit is contained in:
parent
7d83f98ff3
commit
9013bf299e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user