#![feature(inline_const, generic_const_exprs)] //~^ WARN the feature `generic_const_exprs` is incomplete fn foo() { let _ = [0u8; const { std::mem::size_of::() }]; //~^ ERROR: overly complex generic constant } fn main() { foo::(); }