Warn when reexporting a private extern crate
This commit is contained in:
parent
3358fb11da
commit
f8d6dcf46e
5 changed files with 24 additions and 13 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue