File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Regression test for #82865.
2
+
3
+ #![ feature( decl_macro) ]
4
+
5
+ use x:: y:: z; //~ ERROR: failed to resolve: maybe a missing crate `x`?
6
+
7
+ macro mac ( ) {
8
+ Box :: z //~ ERROR: no function or associated item
9
+ }
10
+
11
+ fn main ( ) {
12
+ mac ! ( ) ;
13
+ }
Original file line number Diff line number Diff line change
1
+ error[E0433]: failed to resolve: maybe a missing crate `x`?
2
+ --> $DIR/issue-82865.rs:5:5
3
+ |
4
+ LL | use x::y::z;
5
+ | ^ maybe a missing crate `x`?
6
+
7
+ error[E0599]: no function or associated item named `z` found for struct `Box<_, _>` in the current scope
8
+ --> $DIR/issue-82865.rs:8:10
9
+ |
10
+ LL | Box::z
11
+ | ^ function or associated item not found in `Box<_, _>`
12
+ ...
13
+ LL | mac!();
14
+ | ------- in this macro invocation
15
+ |
16
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
+
18
+ error: aborting due to 2 previous errors
19
+
20
+ Some errors have detailed explanations: E0433, E0599.
21
+ For more information about an error, try `rustc --explain E0433`.
You can’t perform that action at this time.
0 commit comments