summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/match_single_binding.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/match_single_binding.fixed')
-rw-r--r--src/tools/clippy/tests/ui/match_single_binding.fixed13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/match_single_binding.fixed b/src/tools/clippy/tests/ui/match_single_binding.fixed
index a6e315e47..6cfb6661a 100644
--- a/src/tools/clippy/tests/ui/match_single_binding.fixed
+++ b/src/tools/clippy/tests/ui/match_single_binding.fixed
@@ -133,3 +133,16 @@ fn issue_9575() {
println!("Needs curlies");
};
}
+
+#[allow(dead_code)]
+fn issue_9725(r: Option<u32>) {
+ let x = r;
+ match x {
+ Some(_) => {
+ println!("Some");
+ },
+ None => {
+ println!("None");
+ },
+ };
+}