aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/const3.rs
blob: c1d0f29ae199f4ea70d115677632822c200e6b3a (plain)
1
2
3
4
5
6
7
fn size() -> usize {
    15
}

fn main() {
    let a = [15; size()]; // { dg-error "calls in constants are limited to constant functions, tuple structs and tuple variants" }
}