Add rustfmt test for mut ref mut
This commit is contained in:
parent
645b94c155
commit
31a4eae7ea
10
tests/source/mut_ref.rs
Normal file
10
tests/source/mut_ref.rs
Normal file
@ -0,0 +1,10 @@
|
||||
#![feature(mut_ref)]
|
||||
fn mut_ref() {
|
||||
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{
|
||||
println!(
|
||||
"asdfasdfasdf"); }
|
||||
}
|
10
tests/target/mut_ref.rs
Normal file
10
tests/target/mut_ref.rs
Normal file
@ -0,0 +1,10 @@
|
||||
#![feature(mut_ref)]
|
||||
fn mut_ref() {
|
||||
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 {
|
||||
println!("asdfasdfasdf");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user