blob: ce48b3f86a65b383fd06856bb58f03b11ad3f641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(generic_const_exprs))]
struct Bug<S: ?Sized> {
A: [(); {
//[full]~^ ERROR overly complex generic constant
let x: Option<Box<Self>> = None;
//[min]~^ ERROR generic `Self` types are currently not permitted in anonymous constants
0
}],
B: S
}
fn main() {}
|