blob: 5c6377bf94b44a13c4d6765b5f65f52188345ef9 [file] [log] [blame] [edit]
//@ revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(generic_const_exprs))]
struct Bug<T> {
//[min]~^ ERROR parameter `T` is never used
inner: [(); { [|_: &T| {}; 0].len() }],
//[min]~^ ERROR generic parameters may not be used in const operations
//[full]~^^ ERROR overly complex generic constant
}
fn main() {}