Forbid use Trait::*
This commit is contained in:
parent
e2171bff75
commit
1a6092e05c
2 changed files with 7 additions and 0 deletions
|
|
@ -12,4 +12,7 @@ type Alias = ();
|
|||
use Alias::*; //~ ERROR Not a module
|
||||
use std::io::Result::*; //~ ERROR Not a module
|
||||
|
||||
trait T {}
|
||||
use T::*; //~ ERROR items in traits are not importable
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue