Forbid multiple imports in use statements

Closes #10911
This commit is contained in:
Alex Crichton 2013-12-10 21:50:38 -08:00
parent 487e58cca2
commit e2fa3c3af7
2 changed files with 6 additions and 0 deletions

View file

@ -4923,6 +4923,7 @@ impl Parser {
let mut vp = ~[self.parse_view_path()];
while *self.token == token::COMMA {
self.bump();
self.obsolete(*self.last_span, ObsoleteMultipleImport);
vp.push(self.parse_view_path());
}
return vp;