]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-103790.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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() {}