]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/issue-103790.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}