]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/inaccessible_type_aliases.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / imports / inaccessible_type_aliases.rs
1 mod a {
2     type Foo = u64;
3     type Bar = u64;
4 }
5
6 mod b {
7     type Foo = u64;
8 }
9
10 fn main() {
11     let x: Foo = 100; //~ ERROR: cannot find type `Foo` in this scope
12     let y: Bar = 100; //~ ERROR: cannot find type `Bar` in this scope
13     println!("x: {}, y: {}", x, y);
14 }