]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-90878.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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 }