We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5300f87 commit 025bc0eCopy full SHA for 025bc0e
src/tools/rustfmt/tests/source/issue_3853.rs
@@ -50,3 +50,13 @@ if let Some(ref /*def*/ mut /*abc*/ state)= /*abc*/foo{
50
println!(
51
"asdfasdfasdf"); }
52
}
53
+
54
+fn mut_ref_mut() {
55
+ if let Some(mut /*a*/ ref /*def*/ mut /*abc*/ state)= /*abc*/foo{
56
+ println!(
57
+"asdfasdfasdf"); }
58
59
+if let Some(mut /*a*/ ref /*def*/ /*mut*/ state)= /*abc*/foo{
60
61
62
+}
src/tools/rustfmt/tests/target/issue_3853.rs
@@ -45,3 +45,13 @@ fn block_comment_between_lhs_and_rhs() {
45
println!("asdfasdfasdf");
46
47
48
49
+ if let Some(mut /*a*/ ref /*def*/ mut /*abc*/ state) = /*abc*/ foo {
+ println!("asdfasdfasdf");
+ }
+ if let Some(mut /*a*/ ref /*def*/ /*mut*/ state) = /*abc*/ foo {
0 commit comments