mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Add rustfmt test for mut ref mut
This commit is contained in:
parent
528d45af18
commit
e931595909
10
src/tools/rustfmt/tests/source/mut_ref.rs
Normal file
10
src/tools/rustfmt/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
src/tools/rustfmt/tests/target/mut_ref.rs
Normal file
10
src/tools/rustfmt/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