Skip to content

Commit

Permalink
adding tests for nested and glob use
Browse files Browse the repository at this point in the history
  • Loading branch information
lambinoo committed Jul 27, 2021
1 parent 97f001f commit 32d0081
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/test/ui/lint/lint-pub-unreachable-for-nested-glob.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// check-pass

#![deny(unreachable_pub)]

pub use self::m1::*;

mod m1 {
pub use self::m2::*;

mod m2 {
pub struct Item1;
pub struct Item2;
}
}


pub use self::o1::{ Item42, Item24 };

mod o1 {
pub use self::o2::{ Item42, Item24 };

mod o2 {
pub struct Item42;
pub struct Item24;
}
}

fn main() {}

0 comments on commit 32d0081

Please sign in to comment.