]> git.proxmox.com Git - rustc.git/blob - src/test/ui/use/use-mod/use-mod-6.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / use / use-mod / use-mod-6.stderr
1 error[E0429]: `self` imports are only allowed within a { } list
2 --> $DIR/use-mod-6.rs:7:13
3 |
4 LL | use foo::bar::self as abc;
5 | ^^^^^^
6 |
7 help: consider importing the module directly
8 |
9 LL - use foo::bar::self as abc;
10 LL + use foo::bar as abc;
11 |
12 help: alternatively, use the multi-path `use` syntax to import `self`
13 |
14 LL | use foo::bar::{self as abc};
15 | + +
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0429`.