fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: no rules expected the token `bcd` 2 --> $DIR/trace_faulty_macros.rs:7:26 3 | 4LL | macro_rules! my_faulty_macro { 5 | ---------------------------- when calling this macro 6LL | () => { 7LL | my_faulty_macro!(bcd); 8 | ^^^ no rules expected this token in macro call 9... 10LL | my_faulty_macro!(); 11 | ------------------- in this macro invocation 12 | 13 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 14 15note: trace_macro 16 --> $DIR/trace_faulty_macros.rs:31:5 17 | 18LL | my_faulty_macro!(); 19 | ^^^^^^^^^^^^^^^^^^^ 20 | 21 = note: expanding `my_faulty_macro! { }` 22 = note: to `my_faulty_macro ! (bcd) ;` 23 = note: expanding `my_faulty_macro! { bcd }` 24 25error: recursion limit reached while expanding `my_recursive_macro!` 26 --> $DIR/trace_faulty_macros.rs:22:9 27 | 28LL | my_recursive_macro!(); 29 | ^^^^^^^^^^^^^^^^^^^^^^ 30... 31LL | my_recursive_macro!(); 32 | ---------------------- in this macro invocation 33 | 34 = help: consider adding a `#![recursion_limit="8"]` attribute to your crate (`trace_faulty_macros`) 35 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 36 37note: trace_macro 38 --> $DIR/trace_faulty_macros.rs:32:5 39 | 40LL | my_recursive_macro!(); 41 | ^^^^^^^^^^^^^^^^^^^^^^ 42 | 43 = note: expanding `my_recursive_macro! { }` 44 = note: to `my_recursive_macro ! () ;` 45 = note: expanding `my_recursive_macro! { }` 46 = note: to `my_recursive_macro ! () ;` 47 = note: expanding `my_recursive_macro! { }` 48 = note: to `my_recursive_macro ! () ;` 49 = note: expanding `my_recursive_macro! { }` 50 = note: to `my_recursive_macro ! () ;` 51 52error: expected expression, found `A { a: a, b: 0, c: _, .. }` 53 --> $DIR/trace_faulty_macros.rs:16:9 54 | 55LL | $a 56 | ^^ expected expression 57... 58LL | let a = pat_macro!(); 59 | ------------ in this macro invocation 60 | 61 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 62 63error: `derive` may only be applied to structs, enums and unions 64 --> $DIR/trace_faulty_macros.rs:42:1 65 | 66LL | #[derive(Debug)] 67 | ^^^^^^^^^^^^^^^^ 68 69note: trace_macro 70 --> $DIR/trace_faulty_macros.rs:36:13 71 | 72LL | let a = pat_macro!(); 73 | ^^^^^^^^^^^^ 74 | 75 = note: expanding `pat_macro! { }` 76 = note: to `pat_macro ! (A { a : a, b : 0, c : _, .. }) ;` 77 = note: expanding `pat_macro! { A { a : a, b : 0, c : _, .. } }` 78 = note: to `A { a: a, b: 0, c: _, .. }` 79 80error: aborting due to 4 previous errors 81