3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(min, feature(min_const_generics))]
7 struct Bug<S: ?Sized> {
9 //[full]~^ ERROR constant expression depends on a generic parameter
10 let x: Option<Box<Self>> = None;
11 //[min]~^ ERROR generic `Self` types are currently not permitted in anonymous constants