aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/const_expr_local_const_rejected.zc
blob: edab64e132ac903c73b7f0046c3210a71970be40 (plain) (blame)
1
2
3
4
5
6
7
// expect error: expected a constant
include rt;
fn main() {
	const n = 5;
	int[n] a;
	return 0;
}