]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-vec-repeat-not-constant.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / static / static-vec-repeat-not-constant.rs
1 fn foo() -> isize { 23 }
2
3 static a: [isize; 2] = [foo(); 2];
4 //~^ ERROR: E0015
5
6 fn main() {}