]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-103790.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / consts / issue-103790.rs
1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
3
4 struct S<const S: (), const S: S = { S }>;
5 //~^ ERROR the name `S` is already used for a generic parameter in this item's generic parameters
6 //~| ERROR missing generics for struct `S`
7 //~| ERROR cycle detected when computing type of `S::S`
8 //~| ERROR cycle detected when computing type of `S`
9
10 fn main() {}