fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
647 B20 linesraw
1error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
2  --> $DIR/ambiguity-nested.rs:8:13
3   |
4LL |     pub use std::io;
5   |             ^^^ ambiguous name
6   |
7   = note: `std` could refer to a built-in crate
8   = help: use `::std` to refer to this crate unambiguously
9note: `std` could also refer to the module defined here
10  --> $DIR/ambiguity-nested.rs:11:5
11   |
12LL | /     mod std {
13LL | |         pub struct io;
14LL | |     }
15   | |_____^
16   = help: use `self::std` to refer to this module unambiguously
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0659`.