]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/inaccessible_type_aliases.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / 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 }