summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-29927.rs
blob: 3385e4e6e941f87506c73217527fe8ceb56a74a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
#![allow(dead_code)]
struct A {
    field: usize,
}
const fn f() -> usize {
    5
}
fn main() {
    let _ = [0; f()];
}