rust/tests/ui/const-generics/issues/issue-89320.rs
2023-01-11 09:32:08 +00:00

20 lines
281 B
Rust

// build-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
pub trait Enumerable {
const N: usize;
}
#[derive(Clone)]
pub struct SymmetricGroup<S>
where
S: Enumerable,
[(); S::N]: Sized,
{
_phantom: std::marker::PhantomData<S>,
}
fn main() {}