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