about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/no_dependence.rs
blob: ea27e5ef3a811835d39f6384862c67bde976bfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn two_args<const N: usize, const M: usize>() -> [u8; M + 2] {
    [0; M + 2]
}

fn yay<const N: usize>() -> [u8; 4] {
     two_args::<N, 2>() // no lint
}

fn main() {}