]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-90878-3.rs
Rollup merge of #106873 - BoxyUwU:ty_const_formatting, r=compiler-errors
[rust.git] / tests / ui / consts / issue-90878-3.rs
1
2 fn main() {
3     |x: usize| [0; x];  //~ ERROR attempt to use a non-constant value in a constant [E0435]
4     // (note the newline before "fn")
5 }
6 // ignore-tidy-leading-newlines