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
|
|
|
|
|
|
|
struct Bug<T> {
|
2021-10-12 15:47:34 -05:00
|
|
|
//[min]~^ ERROR parameter `T` is never used
|
2020-10-01 20:21:15 -05:00
|
|
|
inner: [(); { [|_: &T| {}; 0].len() }],
|
2020-10-12 16:27:59 -05:00
|
|
|
//[min]~^ ERROR generic parameters may not be used in const operations
|
2021-08-27 11:04:57 -05:00
|
|
|
//[full]~^^ ERROR overly complex generic constant
|
2020-10-01 20:21:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|