Parser: Global single-segment paths should be represented as PatEnum

Fixed #15774.
auto merge of #15862 : jakub-/rust/issue-15774, r=alexcrichton

Fixed #15774.