1--TEST--
2Yield from by reference is not supported
3--FILE--
4<?php
5
6function &gen() {
7    yield from [];
8}
9
10?>
11--EXPECTF--
12Fatal error: Cannot use "yield from" inside a by-reference generator in %s on line %d
13