fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
568 B21 linesraw
1error[E0432]: unresolved import `main`
2  --> $DIR/inaccessible-test-modules.rs:5:5
3   |
4LL | use main as x;
5   |     ----^^^^^
6   |     |
7   |     no `main` in the root
8   |     help: a similar name exists in the module: `main`
9
10error[E0432]: unresolved import `test`
11  --> $DIR/inaccessible-test-modules.rs:6:5
12   |
13LL | use test as y;
14   |     ----^^^^^
15   |     |
16   |     no `test` in the root
17   |     help: a similar name exists in the module: `test`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0432`.