rust/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs
2023-01-19 15:39:05 +01:00

13 lines
208 B
Rust

// 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() {}