blob: c3d4214e282d705453d926405b1d3837e9095995 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
mod a {
type Foo = u64;
type Bar = u64;
}
mod b {
type Foo = u64;
}
fn main() {
let x: Foo = 100; //~ ERROR: cannot find type `Foo` in this scope
let y: Bar = 100; //~ ERROR: cannot find type `Bar` in this scope
println!("x: {}, y: {}", x, y);
}
|