Forbid use Trait::*

This commit is contained in:
Jeffrey Seyfried 2016-03-08 22:27:12 +00:00
parent e2171bff75
commit 1a6092e05c
2 changed files with 7 additions and 0 deletions

View file

@ -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() {}