about summary refs log tree commit diff
path: root/tests/ui/macros/issue-78325-inconsistent-resolution.stderr
blob: 7c745040640ce2a6ecff65670752a883a6793a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
  --> $DIR/issue-78325-inconsistent-resolution.rs:5:9
   |
LL |         extern crate std as core;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | define_other_core!();
   | -------------------- in this macro invocation
   |
   = note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0659]: `core` is ambiguous
  --> $DIR/issue-78325-inconsistent-resolution.rs:11:5
   |
LL |     core::panic!();
   |     ^^^^ ambiguous name
   |
   = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
   = note: `core` could refer to a built-in crate
note: `core` could also refer to the crate imported here
  --> $DIR/issue-78325-inconsistent-resolution.rs:5:9
   |
LL |         extern crate std as core;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | define_other_core!();
   | -------------------- in this macro invocation
   = help: use `crate::core` to refer to this crate unambiguously
   = note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0659]: `core` is ambiguous
  --> $DIR/issue-78325-inconsistent-resolution.rs:12:7
   |
LL |     ::core::panic!();
   |       ^^^^ ambiguous name
   |
   = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
   = note: `core` could refer to a built-in crate
note: `core` could also refer to the crate imported here
  --> $DIR/issue-78325-inconsistent-resolution.rs:5:9
   |
LL |         extern crate std as core;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | define_other_core!();
   | -------------------- in this macro invocation
   = note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0659`.