You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/clippy/tests/ui/crashes/ice-6255.stderr
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,5 +9,25 @@ LL | define_other_core!();
9
9
|
10
10
= note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)
11
11
12
-
error: aborting due to 1 previous error
12
+
error[E0659]: `core` is ambiguous
13
+
--> tests/ui/crashes/ice-6255.rs:12:5
14
+
|
15
+
LL | core::panic!();
16
+
| ^^^^ ambiguous name
17
+
|
18
+
= 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
19
+
= note: `core` could refer to a built-in crate
20
+
note: `core` could also refer to the crate imported here
21
+
--> tests/ui/crashes/ice-6255.rs:6:9
22
+
|
23
+
LL | extern crate std as core;
24
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
25
+
...
26
+
LL | define_other_core!();
27
+
| -------------------- in this macro invocation
28
+
= help: use `crate::core` to refer to this crate unambiguously
29
+
= note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)
30
+
31
+
error: aborting due to 2 previous errors
13
32
33
+
For more information about this error, try `rustc --explain E0659`.
0 commit comments