aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/assign_to_non_lvalue.zc
blob: 7436a121b36ef022ee0ed75fcf151433b856fa6a (plain) (blame)
1
2
3
4
5
6
7
// expect error: this can't be assigned to
include rt;
fn main() {
	int a = 1;
	(a + 1) = 5;
	return 0;
}