Illegal, the move will be taken back and that player must move the pawn (due to the touch move rule) and effectively to promote.
pawn promotion

i think due to negligence or due to hurry if white (say) promote black Queen then, he (White) have to play with the black queen on board.
what if a players while promting pawn puts opponets queen on the board!! in hurry!! will it be a illegal move or dead pawn of player on 8th rank or opponents qeen!!