2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2017-09-26 16:04:00 -05:00
|
|
|
mod a {
|
|
|
|
pub enum B {}
|
|
|
|
|
|
|
|
pub mod d {
|
|
|
|
pub enum E {}
|
|
|
|
pub enum F {}
|
|
|
|
|
|
|
|
pub mod g {
|
|
|
|
pub enum H {}
|
|
|
|
pub enum I {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-29 10:11:09 -06:00
|
|
|
// Test every possible part of the syntax
|
2017-09-26 16:04:00 -05:00
|
|
|
use a::{B, d::{self, *, g::H}};
|
|
|
|
|
2018-01-29 10:11:09 -06:00
|
|
|
// Test a more common use case
|
|
|
|
use std::sync::{Arc, atomic::{AtomicBool, Ordering}};
|
|
|
|
|
2017-09-26 16:04:00 -05:00
|
|
|
fn main() {
|
|
|
|
let _: B;
|
|
|
|
let _: E;
|
|
|
|
let _: F;
|
|
|
|
let _: H;
|
|
|
|
let _: d::g::I;
|
2018-01-29 10:11:09 -06:00
|
|
|
|
|
|
|
let _: Arc<AtomicBool>;
|
|
|
|
let _: Ordering;
|
2017-09-26 16:04:00 -05:00
|
|
|
}
|