]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/span-from-proc-macro.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / proc-macro / span-from-proc-macro.stderr
1 error[E0412]: cannot find type `MissingType` in this scope
2   --> $DIR/auxiliary/span-from-proc-macro.rs:37:20
3    |
4 LL | pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> TokenStream {
5    | ----------------------------------------------------------------------------------- in this expansion of `#[error_from_attribute]`
6 ...
7 LL |             field: MissingType
8    |                    ^^^^^^^^^^^ not found in this scope
9    |
10   ::: $DIR/span-from-proc-macro.rs:8:1
11    |
12 LL | #[error_from_attribute]
13    | ----------------------- in this procedural macro expansion
14
15 error[E0412]: cannot find type `OtherMissingType` in this scope
16   --> $DIR/auxiliary/span-from-proc-macro.rs:46:21
17    |
18 LL | pub fn error_from_derive(_input: TokenStream) -> TokenStream {
19    | ------------------------------------------------------------ in this expansion of `#[derive(ErrorFromDerive)]`
20 ...
21 LL |             Variant(OtherMissingType)
22    |                     ^^^^^^^^^^^^^^^^ not found in this scope
23    |
24   ::: $DIR/span-from-proc-macro.rs:11:10
25    |
26 LL | #[derive(ErrorFromDerive)]
27    |          --------------- in this derive macro expansion
28
29 error[E0425]: cannot find value `my_ident` in this scope
30   --> $DIR/auxiliary/span-from-proc-macro.rs:29:9
31    |
32 LL | pub fn other_error_from_bang(_input: TokenStream) -> TokenStream {
33    | ---------------------------------------------------------------- in this expansion of `other_error_from_bang!`
34 LL |     custom_quote::custom_quote! {
35 LL |         my_ident
36    |         ^^^^^^^^ not found in this scope
37    |
38   ::: $DIR/span-from-proc-macro.rs:16:5
39    |
40 LL |     other_error_from_bang!();
41    |     ------------------------ in this macro invocation
42
43 error[E0308]: mismatched types
44   --> $DIR/auxiliary/span-from-proc-macro.rs:16:36
45    |
46 LL |             let bang_error: bool = 25;
47    |                             ----   ^^ expected `bool`, found integer
48    |                             |
49    |                             expected due to this
50 ...
51 LL | pub fn error_from_bang(_input: TokenStream) -> TokenStream {
52    | ---------------------------------------------------------- in this expansion of `error_from_bang!`
53    |
54   ::: $DIR/span-from-proc-macro.rs:15:5
55    |
56 LL |     error_from_bang!();
57    |     ------------------ in this macro invocation
58
59 error: aborting due to 4 previous errors
60
61 Some errors have detailed explanations: E0308, E0412, E0425.
62 For more information about an error, try `rustc --explain E0308`.