]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/mixed-site-span.stderr
Update const_forget.rs
[rust.git] / src / test / ui / proc-macro / mixed-site-span.stderr
1 error[E0426]: use of undeclared label `'label_use`
2   --> $DIR/mixed-site-span.rs:15:9
3    |
4 LL |         proc_macro_rules!();
5    |         ^^^^^^^^^^^^^^^^^^^^ undeclared label `'label_use`
6    |
7    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error[E0425]: cannot find value `local_use` in this scope
10   --> $DIR/mixed-site-span.rs:15:9
11    |
12 LL |         proc_macro_rules!();
13    |         ^^^^^^^^^^^^^^^^^^^^ not found in this scope
14    |
15    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error[E0425]: cannot find value `local_def` in this scope
18   --> $DIR/mixed-site-span.rs:19:9
19    |
20 LL |         local_def;
21    |         ^^^^^^^^^ not found in this scope
22
23 error[E0412]: cannot find type `ItemUse` in crate `$crate`
24   --> $DIR/auxiliary/mixed-site-span.rs:14:1
25    |
26 LL | / pub fn proc_macro_rules(input: TokenStream) -> TokenStream {
27 LL | |     if input.is_empty() {
28 LL | |         let id = |s| TokenTree::from(Ident::new(s, Span::mixed_site()));
29 LL | |         let item_def = id("ItemDef");
30 ...  |
31 LL | |     }
32 LL | | }
33    | |_^ not found in `$crate`
34    | 
35   ::: $DIR/mixed-site-span.rs:26:1
36    |
37 LL |   pass_dollar_crate!();
38    |   --------------------- in this macro invocation
39    |
40    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
41 help: possible candidate is found in another module, you can import it into scope
42    |
43 LL | use ItemUse;
44    |
45
46 error: aborting due to 4 previous errors
47
48 Some errors have detailed explanations: E0412, E0425, E0426.
49 For more information about an error, try `rustc --explain E0412`.