xref: /PHP-8.0/Zend/tests/list_008.phpt (revision 4f077aee)
1--TEST--
2Assignment to invalid list() value
3--FILE--
4<?php
5
6[42] = [1];
7
8?>
9--EXPECTF--
10Fatal error: Assignments can only happen to writable values in %s on line %d
11