The trainers you can lose to, but you don't black out.
This will not occur in special occasions such as the player's initial battle as a Trainer in Red, Blue, Yellow, FireRed, LeafGreen, Platinum, Black, White, Black 2, White 2, or in Link Battles and facilities of the Battle Frontier.
Link
Hope I helped.