fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
487 B19 linesraw
1error[E0429]: `self` imports are only allowed within a { } list
2  --> $DIR/use-mod-5.rs:7:13
3   |
4LL | use foo::bar::self;
5   |             ^^^^^^
6   |
7help: consider importing the module directly
8   |
9LL - use foo::bar::self;
10LL + use foo::bar;
11   |
12help: alternatively, use the multi-path `use` syntax to import `self`
13   |
14LL | use foo::bar::{self};
15   |               +    +
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0429`.