fork/rust

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

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

master
1.6 KiB50 linesraw
1error[E0432]: unresolved import `my_core`
2  --> $DIR/extern-prelude-from-opaque-fail.rs:21:9
3   |
4LL |     use my_core;
5   |         ^^^^^^^ no `my_core` in the root
6
7error[E0432]: unresolved import `my_core`
8  --> $DIR/extern-prelude-from-opaque-fail.rs:8:13
9   |
10LL |         use my_core;
11   |             ^^^^^^^ no `my_core` in the root
12...
13LL | a!();
14   | ---- in this macro invocation
15   |
16   = note: this error originates in the macro `a` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18error[E0433]: failed to resolve: use of undeclared crate or module `my_core`
19  --> $DIR/extern-prelude-from-opaque-fail.rs:12:18
20   |
21LL |         fn f() { my_core::mem::drop(0); }
22   |                  ^^^^^^^ use of undeclared crate or module `my_core`
23...
24LL | a!();
25   | ---- in this macro invocation
26   |
27   = help: consider importing this module:
28           my_core::mem
29   = note: this error originates in the macro `a` (in Nightly builds, run with -Z macro-backtrace for more info)
30
31error[E0433]: failed to resolve: use of undeclared crate or module `my_core`
32  --> $DIR/extern-prelude-from-opaque-fail.rs:25:14
33   |
34LL |     fn f() { my_core::mem::drop(0); }
35   |              ^^^^^^^ use of undeclared crate or module `my_core`
36   |
37help: consider importing this module
38   |
39LL +     use my_core::mem;
40   |
41help: if you import `mem`, refer to it directly
42   |
43LL -     fn f() { my_core::mem::drop(0); }
44LL +     fn f() { mem::drop(0); }
45   |
46
47error: aborting due to 4 previous errors
48
49Some errors have detailed explanations: E0432, E0433.
50For more information about an error, try `rustc --explain E0432`.