]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/nested-type.rs
Rollup merge of #75201 - Hirrolot:hirrolot/fix-clippy-warnings, r=varkor
[rust.git] / src / test / ui / const-generics / nested-type.rs
1 #![feature(const_generics)]
2 #![allow(incomplete_features)]
3
4 struct Foo<const N: [u8; {
5 //~^ ERROR cycle detected
6 //~| ERROR cycle detected
7     struct Foo<const N: usize>;
8
9     impl<const N: usize> Foo<N> {
10         fn value() -> usize {
11             N
12         }
13     }
14
15     Foo::<17>::value()
16 }]>;
17
18 fn main() {}