Barriers suffocate the player
When a mob or player is traveling on a minecart and on the track there is a barrier (above the track), the player/mob takes damage like it's an opaque block
Barriers are transparent blocks, and as all transparents block (glass, leaves) it should not suffocate the mob/player