def METHOD_NAME(caplog):
    with magma_debug_section():
        class _Foo(m.Circuit):
            T = m.Bits[8]
            io = m.IO(I=m.In(T), O=m.Out(T))
            io.O @= m.Bits[8]()
        try:
            m.compile("Foo", _Foo, output="coreir")
            assert False, "Did not raise excpected exception"
        except Exception as e:
            assert str(e) == "Found circuit with errors: _Foo"
        msg = """\