summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-90878.rs
blob: 43f6fe5f3800d8b0a1a5c347a749f0cb47be0441 (plain)
1
2
3
4
 fn main() {
    |x: usize| [0; x];  //~ ERROR attempt to use a non-constant value in a constant [E0435]
    // (note the space before "fn")
}