rust/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
209 B
Rust
Raw Normal View History

2023-01-19 14:39:05 +00:00
//@ 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() {}