about summary refs log tree commit diff
path: root/tests/ui/const-generics/defaults/complex-unord-param.rs
blob: 5783fc415571a49015185237eeff9a96a652a9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ run-pass
// Checks a complicated usage of unordered params
#![allow(dead_code)]

struct NestedArrays<'a, const N: usize, A: 'a, const M: usize, T:'a =u32> {
    args: &'a [&'a [T; M]; N],
    specifier: A,
}

fn main() {
    let array = [1, 2, 3];
    let nest = [&array];
    let _ = NestedArrays {
        args: &nest,
        specifier: true,
    };
}