summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/configs/indent_style/visual_args.rs
blob: 5aa28a62b9cef0324a279a9f7c53181a04b5b9b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// rustfmt-indent_style: Visual
// Function arguments layout

fn lorem() {}

fn lorem(ipsum: usize) {}

fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize, elit: usize) {
    // body
}

// #1922
extern "C" {
    pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
            uplo: c_char,
                n: lapack_int,
        nrhs: lapack_int,
        a: *const lapack_complex_float,
                    lda: lapack_int, ipiv: *const lapack_int,
        b: *mut lapack_complex_float,
            ldb: lapack_int
    )-> lapack_int;

    pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
            uplo: c_char,
                n: lapack_int,
        nrhs: lapack_int,
                    lda: lapack_int, ipiv: *const lapack_int,
        b: *mut lapack_complex_float,
            ldb: lapack_int
    ) -> lapack_int;
}