]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-67945-3.rs
Rollup merge of #80382 - GuillaumeGomez:search-result-tab-picking, r=Nemo157,pickfire
[rust.git] / src / test / ui / const-generics / 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() {}