]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/inaccessible_type_aliases.stderr
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / imports / inaccessible_type_aliases.stderr
1 error[E0412]: cannot find type `Foo` in this scope
2   --> $DIR/inaccessible_type_aliases.rs:11:12
3    |
4 LL |     let x: Foo = 100;
5    |            ^^^ not found in this scope
6    |
7 note: these type aliases exist but are inaccessible
8   --> $DIR/inaccessible_type_aliases.rs:2:5
9    |
10 LL |     type Foo = u64;
11    |     ^^^^^^^^^^^^^^^ `a::Foo`: not accessible
12 ...
13 LL |     type Foo = u64;
14    |     ^^^^^^^^^^^^^^^ `b::Foo`: not accessible
15
16 error[E0412]: cannot find type `Bar` in this scope
17   --> $DIR/inaccessible_type_aliases.rs:12:12
18    |
19 LL |     let y: Bar = 100;
20    |            ^^^ not found in this scope
21    |
22 note: type alias `a::Bar` exists but is inaccessible
23   --> $DIR/inaccessible_type_aliases.rs:3:5
24    |
25 LL |     type Bar = u64;
26    |     ^^^^^^^^^^^^^^^ not accessible
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0412`.