General and direct synthesis of 3-aminoindolizines and their analogues via Pd/Cu-catalyzed sequential cross-coupling/cycloisomerization reactions.