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: tests/ui/imports/issue-109148.stderr
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,45 @@ LL | m!();
46
46
| ---- in this macro invocation
47
47
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
48
48
49
-
error: aborting due to 3 previous errors
49
+
error[E0659]: `std` is ambiguous
50
+
--> $DIR/issue-109148.rs:13:5
51
+
|
52
+
LL | use std::mem;
53
+
| ^^^ ambiguous name
54
+
|
55
+
= 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
56
+
= note: `std` could refer to a built-in crate
57
+
note: `std` could also refer to the crate imported here
58
+
--> $DIR/issue-109148.rs:6:9
59
+
|
60
+
LL | extern crate core as std;
61
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
62
+
...
63
+
LL | m!();
64
+
| ---- in this macro invocation
65
+
= help: use `crate::std` to refer to this crate unambiguously
66
+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
67
+
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
68
+
69
+
error[E0659]: `std` is ambiguous
70
+
--> $DIR/issue-109148.rs:14:7
71
+
|
72
+
LL | use ::std::mem as _;
73
+
| ^^^ ambiguous name
74
+
|
75
+
= 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
76
+
= note: `std` could refer to a built-in crate
77
+
note: `std` could also refer to the crate imported here
78
+
--> $DIR/issue-109148.rs:6:9
79
+
|
80
+
LL | extern crate core as std;
81
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
82
+
...
83
+
LL | m!();
84
+
| ---- in this macro invocation
85
+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
86
+
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
87
+
88
+
error: aborting due to 5 previous errors
50
89
51
90
For more information about this error, try `rustc --explain E0659`.
0 commit comments