2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2015-08-01 00:20:25 -05:00
|
|
|
use foo::{x, y as fooy};
|
|
|
|
use Maybe::{Yes as MaybeYes};
|
|
|
|
|
|
|
|
pub enum Maybe { Yes, No }
|
|
|
|
mod foo {
|
|
|
|
use super::Maybe::{self as MaybeFoo};
|
|
|
|
pub fn x(a: MaybeFoo) {}
|
|
|
|
pub fn y(a: i32) { println!("{}", a); }
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() { x(MaybeYes); fooy(10); }
|