2019-06-12 18:18:32 +03:00
|
|
|
// check-pass
|
|
|
|
|
2016-08-12 08:30:48 +00:00
|
|
|
#![deny(unused_attributes)] // c.f #35584
|
2019-06-12 18:18:32 +03:00
|
|
|
|
2016-08-12 08:30:48 +00:00
|
|
|
mod auxiliary {
|
|
|
|
#[cfg_attr(any(), path = "nonexistent_file.rs")] pub mod namespaced_enums;
|
|
|
|
#[cfg_attr(all(), path = "namespaced_enums.rs")] pub mod nonexistent_file;
|
|
|
|
}
|
|
|
|
|
2018-10-31 13:08:01 +01:00
|
|
|
fn main() {
|
2016-08-12 08:30:48 +00:00
|
|
|
let _ = auxiliary::namespaced_enums::Foo::A;
|
|
|
|
let _ = auxiliary::nonexistent_file::Foo::A;
|
|
|
|
}
|