mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
14 lines
293 B
Rust
14 lines
293 B
Rust
//@ 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); }
|