blob: d3c5c891f760761ff38a69b5b001af432aaeafc4 [file] [log] [blame]
//@ 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`
0
}],
B: S
}
fn main() {}