about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/target/mut_ref.rs
blob: 16035243791153dc228e5a469eac0915f3d016b0 (plain)
1
2
3
4
5
6
7
8
9
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");
    }
}