2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-10-19 01:46:08 -05:00
|
|
|
mod m2 {
|
|
|
|
pub enum Foo {
|
|
|
|
A,
|
2015-03-25 19:06:52 -05:00
|
|
|
B(isize),
|
|
|
|
C { a: isize },
|
2014-10-19 01:46:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
pub fn foo() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
pub use m2::Foo::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn _f(f: m2::Foo) {
|
|
|
|
use m2::Foo::*;
|
|
|
|
|
|
|
|
match f {
|
|
|
|
A | B(_) | C { .. } => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn _f2(f: m2::Foo) {
|
|
|
|
match f {
|
|
|
|
m::A | m::B(_) | m::C { .. } => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|