Let's say I have a level 32 Darmanitan with Thrash. I get into a battle with a trainer. I use Thrash on the first Pokemon and it faints. He level up. He tries to learn Flare Blitz and I want to replace Thrash.
Will it let me?? If so, what happens next turn??