summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs')
-rw-r--r--src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs b/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs
new file mode 100644
index 000000000..604bc8503
--- /dev/null
+++ b/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.fixed.rs
@@ -0,0 +1,8 @@
+fn main() {
+ // insert only fix, adds `,` to first match arm
+ // why doesnt this replace 1 with 1,?
+ match &Some(3) {
+ &None => 1,
+ &Some(x) => x,
+ };
+}