Cu-catalyzed tandem C-N bond formation for the synthesis of pyrroles and heteroarylpyrroles.