Nothing would happen if your gecko ate carrot. Just remember that their GI systems are not designed to digest cellulose material, so they'd probably just poop it out.
Well this will be cool to see lol but leos are insects eaters not vegie eaters lol no it will not hurt him but I can say to you now that it might trun it's nose at it lol. Good Luck.