I ask a girl out and got rejected

And i feel like shit. How do i moce pass the feeling of being a failure?