Marvel Studios head Kevin Feige has spoken to Empire Magazine about Ant-Man, basically confirming that the story Edgar Wright is going to be telling with Paul Rudd and Michael Douglas as Scott Lang and Hank Pym, respectively, allows Robert Downey Jr’s Tony Stark to create Ultron, the Avengers sequel villain.
"It was two things - a story Edgar wanted to tell that we'll see with Michael Douglas and Paul Rudd, and now we're 11 films in, it's looking at the characters we've already introduced who already have the technology and the brains to do...certain things [Laughs]."
Feige also said that not much in the Edgar Wright Ant-Man draft that existed before Marvel launched the MCU has been changed:
"We changed, frankly some of the MCU to accommodate this version of Ant-Man. Knowing what we wanted to do with Edgar and with Ant-Man, going years and years back, helped to dictate what we did with the roster for Avengers the first time. It was a bit of both in terms of his idea for the Ant-Man story influencing the birth of the MCU in the early films leading up to Avengers."
"Look at that origin of the petty crook who comes into contact with a suit and does his best to make good, and then look at someone like Paul Rudd, who can do slightly unsavoury things like break into people's houses and still be charming and who you root for and whose redemption you will find satisfaction in."