2020-10-03 11:00:18 -05:00
|
|
|
//@ revisions: full min
|
|
|
|
|
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2021-08-27 11:04:57 -05:00
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
2020-10-01 20:21:15 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
struct Bug<S: ?Sized> {
|
2020-10-01 20:21:15 -05:00
|
|
|
A: [(); {
|
2021-08-27 11:04:57 -05:00
|
|
|
//[full]~^ ERROR overly complex generic constant
|
|
|
|
let x: Option<Box<Self>> = None;
|
|
|
|
//[min]~^ ERROR generic `Self` types are currently not permitted in anonymous constants
|
2020-10-01 20:21:15 -05:00
|
|
|
0
|
|
|
|
}],
|
2021-08-27 11:04:57 -05:00
|
|
|
B: S
|
2020-10-01 20:21:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|