File: span-from-proc-macro.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 893,176 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (62 lines) | stat: -rw-r--r-- 2,469 bytes parent folder | download | duplicates (6)
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
52
53
54
55
56
57
58
59
60
61
62
error[E0412]: cannot find type `MissingType` in this scope
  --> $DIR/auxiliary/span-from-proc-macro.rs:33:20
   |
LL | pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> TokenStream {
   | ----------------------------------------------------------------------------------- in this expansion of `#[error_from_attribute]`
...
LL |             field: MissingType
   |                    ^^^^^^^^^^^ not found in this scope
   |
  ::: $DIR/span-from-proc-macro.rs:8:1
   |
LL | #[error_from_attribute]
   | ----------------------- in this procedural macro expansion

error[E0412]: cannot find type `OtherMissingType` in this scope
  --> $DIR/auxiliary/span-from-proc-macro.rs:42:21
   |
LL | pub fn error_from_derive(_input: TokenStream) -> TokenStream {
   | ------------------------------------------------------------ in this expansion of `#[derive(ErrorFromDerive)]`
...
LL |             Variant(OtherMissingType)
   |                     ^^^^^^^^^^^^^^^^ not found in this scope
   |
  ::: $DIR/span-from-proc-macro.rs:11:10
   |
LL | #[derive(ErrorFromDerive)]
   |          --------------- in this derive macro expansion

error[E0425]: cannot find value `my_ident` in this scope
  --> $DIR/auxiliary/span-from-proc-macro.rs:25:9
   |
LL | pub fn other_error_from_bang(_input: TokenStream) -> TokenStream {
   | ---------------------------------------------------------------- in this expansion of `other_error_from_bang!`
LL |     custom_quote::custom_quote! {
LL |         my_ident
   |         ^^^^^^^^ not found in this scope
   |
  ::: $DIR/span-from-proc-macro.rs:16:5
   |
LL |     other_error_from_bang!();
   |     ------------------------ in this macro invocation

error[E0308]: mismatched types
  --> $DIR/auxiliary/span-from-proc-macro.rs:12:36
   |
LL |             let bang_error: bool = 25;
   |                             ----   ^^ expected `bool`, found integer
   |                             |
   |                             expected due to this
...
LL | pub fn error_from_bang(_input: TokenStream) -> TokenStream {
   | ---------------------------------------------------------- in this expansion of `error_from_bang!`
   |
  ::: $DIR/span-from-proc-macro.rs:15:5
   |
LL |     error_from_bang!();
   |     ------------------ in this macro invocation

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0308, E0412, E0425.
For more information about an error, try `rustc --explain E0308`.