blob: a6026c1d03fd50434a86f6e40e31b7a88ba34ddb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#![crate_type="lib"]
#![deny(warnings)]
pub use src::aliases::B;
pub use src::hidden_core::make;
mod src {
pub mod aliases {
use super::hidden_core::A;
pub type B = A;
}
pub mod hidden_core {
use super::aliases::B;
#[derive(Copy, Clone)]
pub struct A;
pub fn make() -> B { A }
impl A {
pub fn foo(&mut self) { println!("called foo"); }
}
}
}
|