def outer18(x):
            """ closure is generator, consumed in loop """
            z = x + 1

            def inner(x):
                yield x + z

            for i in inner(x):
                t = i

            return t
 closure is generator, consumed in loop 
numba/tests/test_closure.py