summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/static-vec-repeat-not-constant.rs
blob: 61c87b144d9e419e68de62aa8385fa16dd9e1fb2 (plain)
1
2
3
4
5
6
fn foo() -> isize { 23 }

static a: [isize; 2] = [foo(); 2];
//~^ ERROR: E0015

fn main() {}