rust/tests/ui-toml/too_large_for_stack/boxed_local.rs

6 lines
126 B
Rust
Raw Normal View History

fn f(x: Box<[u8; 500]>) {}
//~^ ERROR: local variable doesn't need to be boxed here
fn f2(x: Box<[u8; 501]>) {}
fn main() {}