Cobalt-catalyzed intramolecular olefin hydroarylation leading to dihydropyrroloindoles and tetrahydropyridoindoles.