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