]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/bad-import-with-rename.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / imports / bad-import-with-rename.stderr
1 error[E0432]: unresolved import `crate::D::B`
2   --> $DIR/bad-import-with-rename.rs:7:9
3    |
4 LL |     use crate::D::B as _;
5    |         ^^^^^^^^^^^^^^^^ no `B` in `D`
6    |
7 help: consider importing this type alias instead
8    |
9 LL |     use A::B as _;
10    |         ~~~~~~~~~
11
12 error[E0432]: unresolved import `crate::D::B2`
13   --> $DIR/bad-import-with-rename.rs:10:9
14    |
15 LL |     use crate::D::B2;
16    |         ^^^^^^^^^^^^ no `B2` in `D`
17    |
18 help: consider importing this type alias instead
19    |
20 LL |     use A::B2;
21    |         ~~~~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0432`.