summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/brace_style/fn_prefer_same_line.rs
blob: 23f98b6dd7a6289347ea8a449bfd4612c1cbdf57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// rustfmt-brace_style: PreferSameLine
// Function brace style

fn lorem() {
    // body
}

fn lorem(ipsum: usize) {
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div, {
    // body
}