blob: 9ad2b34b83767764e09dd2205b81523a76daf937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// run-pass
#![allow(unused_variables)]
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); }
|