1error: expected type, found `{` 2 --> $DIR/macro-fail.rs:29:27 3 | 4LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> { 5 | ---------------------- 6 | | 7 | this macro call doesn't expand to a type 8 | in this macro invocation 9... 10LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type 12 | 13 = note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info) 14 15error: expected type, found `{` 16 --> $DIR/macro-fail.rs:29:27 17 | 18LL | Example::<gimme_a_const!(marker)> 19 | ---------------------- 20 | | 21 | this macro call doesn't expand to a type 22 | in this macro invocation 23... 24LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type 26 | 27 = note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info) 28 29error: expected type, found `{` 30 --> $DIR/macro-fail.rs:4:10 31 | 32LL | () => {{ 33 | __________^ 34LL | | 35LL | | const X: usize = 1337; 36LL | | X 37LL | | }} 38 | |___^ expected type 39... 40LL | let _fail = Example::<external_macro!()>; 41 | ----------------- 42 | | 43 | this macro call doesn't expand to a type 44 | in this macro invocation 45 | 46 = note: this error originates in the macro `external_macro` (in Nightly builds, run with -Z macro-backtrace for more info) 47 48error: unexpected end of macro invocation 49 --> $DIR/macro-fail.rs:39:25 50 | 51LL | macro_rules! gimme_a_const { 52 | -------------------------- when calling this macro 53... 54LL | let _fail = Example::<gimme_a_const!()>; 55 | ^^^^^^^^^^^^^^^^ missing tokens in macro arguments 56 57error[E0747]: type provided when a constant was expected 58 --> $DIR/macro-fail.rs:14:33 59 | 60LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> { 61 | ^^^^^^^^^^^^^^^^^^^^^^ 62 63error[E0747]: type provided when a constant was expected 64 --> $DIR/macro-fail.rs:16:13 65 | 66LL | Example::<gimme_a_const!(marker)> 67 | ^^^^^^^^^^^^^^^^^^^^^^ 68 69error[E0747]: type provided when a constant was expected 70 --> $DIR/macro-fail.rs:36:25 71 | 72LL | let _fail = Example::<external_macro!()>; 73 | ^^^^^^^^^^^^^^^^^ 74 75error[E0747]: type provided when a constant was expected 76 --> $DIR/macro-fail.rs:39:25 77 | 78LL | let _fail = Example::<gimme_a_const!()>; 79 | ^^^^^^^^^^^^^^^^ 80 81error: aborting due to 8 previous errors 82 83For more information about this error, try `rustc --explain E0747`. 84