]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/document-item-with-associated-const-in-where-clause.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / rustdoc / document-item-with-associated-const-in-where-clause.rs
1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
3
4 pub trait Enumerable {
5 const N: usize;
6 }
7
8 #[derive(Clone)]
9 pub struct SymmetricGroup<S>
10 where
11 S: Enumerable,
12 [(); S::N]: Sized,
13 {
14 _phantom: std::marker::PhantomData<S>,
15 }
16
17 fn main() {}