]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-67945-3.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-67945-3.rs
1 // revisions: full min
2
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(full, feature(const_generics))]
5
6 struct Bug<S: ?Sized> {
7 A: [(); {
8 //[full]~^ ERROR constant expression depends on a generic parameter
9 let x: Option<Box<Self>> = None;
10 //[min]~^ ERROR generic `Self` types are currently not permitted in anonymous constants
11 0
12 }],
13 B: S
14 }
15
16 fn main() {}