Warn when reexporting a private extern crate

This commit is contained in:
Jeffrey Seyfried 2016-02-02 09:39:59 +00:00
parent 3358fb11da
commit f8d6dcf46e
5 changed files with 24 additions and 13 deletions

View file

@ -11,6 +11,10 @@
#![feature(rustc_attrs)]
#![allow(dead_code)]
extern crate core;
pub use core as reexported_core; //~ WARN extern crate `core` is private, and cannot be reexported
//~^ WARNING hard error
mod m1 {
pub use ::E::V; //~ WARN variant `V` is private, and cannot be reexported
//~^ WARNING hard error