Stack overflow if use is a single identifier

The following code causes a stack overflow

use X;
fn x(x: X) -> bool {false}
Edited by Frans Skarman