]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-90878.rs
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / ui / consts / issue-90878.rs
1  fn main() {
2     |x: usize| [0; x];  //~ ERROR attempt to use a non-constant value in a constant [E0435]
3     // (note the space before "fn")
4 }