Skip to content

Commit e931595

Browse files
Add rustfmt test for mut ref mut
1 parent 528d45a commit e931595

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(mut_ref)]
2+
fn mut_ref() {
3+
if let Some(mut /*a*/ ref /*def*/ mut /*abc*/ state)= /*abc*/foo{
4+
println!(
5+
"asdfasdfasdf"); }
6+
7+
if let Some(mut /*a*/ ref /*def*/ /*mut*/ state)= /*abc*/foo{
8+
println!(
9+
"asdfasdfasdf"); }
10+
}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(mut_ref)]
2+
fn mut_ref() {
3+
if let Some(mut /*a*/ ref /*def*/ mut /*abc*/ state) = /*abc*/ foo {
4+
println!("asdfasdfasdf");
5+
}
6+
7+
if let Some(mut /*a*/ ref /*def*/ /*mut*/ state) = /*abc*/ foo {
8+
println!("asdfasdfasdf");
9+
}
10+
}

0 commit comments

Comments
 (0)