As a caveat to what has been stated by others, if you're a bladesinger wizard, the Extra Attack there does allow for it to be used with Extra Attack since Bladesinger allows one of the attacks to be replaced with a cantrip cast.