blob: 3982f7a7f125cc32feff0ba09995c20c3f00548f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// check-pass
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(min, feature(min_const_generics))]
struct Foo<const A: usize, const B: usize>;
impl<const A: usize> Foo<1, A> {} // ok
fn main() {}
|