summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs
blob: 8363e5af4b61c97ed19475bc950e6aece56dc0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

#[derive(Clone)]
struct Bar<const A: usize, const B: usize>
where
    [(); A as usize]:,
    [(); B as usize]:,
{}

fn main() {}