Prohibit renaming to primitive types' names in import lists
This commit is contained in:
parent
9040b06ed2
commit
cfa2925f2e
2 changed files with 18 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue