Prohibit renaming to primitive types' names in import lists

This commit is contained in:
Vadim Petrochenkov 2015-09-15 01:07:17 +03:00
parent 9040b06ed2
commit cfa2925f2e
2 changed files with 18 additions and 2 deletions

View file

@ -47,6 +47,8 @@ mod char {
//~^ ERROR user-defined types or type parameters cannot shadow the primitive types
use super::bool_ as bool;
//~^ ERROR user-defined types or type parameters cannot shadow the primitive types
use super::{bool_ as str};
//~^ ERROR user-defined types or type parameters cannot shadow the primitive types
use super::char_ as char;
}
}