|
| 1 | +error: expected type, found `{` |
| 2 | + --> $DIR/macro-fail.rs:33:27 |
| 3 | + | |
| 4 | +LL | 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 | +... |
| 10 | +LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type |
| 12 | + | |
| 13 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 | + |
| 15 | +error: expected type, found `{` |
| 16 | + --> $DIR/macro-fail.rs:33:27 |
| 17 | + | |
| 18 | +LL | Example::<gimme_a_const!(marker)> |
| 19 | + | ---------------------- |
| 20 | + | | |
| 21 | + | this macro call doesn't expand to a type |
| 22 | + | in this macro invocation |
| 23 | +... |
| 24 | +LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }} |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type |
| 26 | + | |
| 27 | + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 28 | + |
| 29 | +error: expected type, found `{` |
| 30 | + --> $DIR/macro-fail.rs:6:10 |
| 31 | + | |
| 32 | +LL | () => {{ |
| 33 | + | __________^ |
| 34 | +LL | | |
| 35 | +LL | | const X: usize = 1337; |
| 36 | +LL | | X |
| 37 | +LL | | }} |
| 38 | + | |___^ expected type |
| 39 | +... |
| 40 | +LL | 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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| 47 | + |
| 48 | +error: unexpected end of macro invocation |
| 49 | + --> $DIR/macro-fail.rs:44:25 |
| 50 | + | |
| 51 | +LL | macro_rules! gimme_a_const { |
| 52 | + | -------------------------- when calling this macro |
| 53 | +... |
| 54 | +LL | let _fail = Example::<gimme_a_const!()>; |
| 55 | + | ^^^^^^^^^^^^^^^^ missing tokens in macro arguments |
| 56 | + |
| 57 | +error[E0107]: wrong number of const arguments: expected 1, found 0 |
| 58 | + --> $DIR/macro-fail.rs:16:26 |
| 59 | + | |
| 60 | +LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> { |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 const argument |
| 62 | + |
| 63 | +error[E0107]: wrong number of type arguments: expected 0, found 1 |
| 64 | + --> $DIR/macro-fail.rs:16:33 |
| 65 | + | |
| 66 | +LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> { |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument |
| 68 | + |
| 69 | +error[E0107]: wrong number of const arguments: expected 1, found 0 |
| 70 | + --> $DIR/macro-fail.rs:19:3 |
| 71 | + | |
| 72 | +LL | Example::<gimme_a_const!(marker)> |
| 73 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 const argument |
| 74 | + |
| 75 | +error[E0107]: wrong number of type arguments: expected 0, found 1 |
| 76 | + --> $DIR/macro-fail.rs:19:13 |
| 77 | + | |
| 78 | +LL | Example::<gimme_a_const!(marker)> |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument |
| 80 | + |
| 81 | +error[E0107]: wrong number of const arguments: expected 1, found 0 |
| 82 | + --> $DIR/macro-fail.rs:40:15 |
| 83 | + | |
| 84 | +LL | let _fail = Example::<external_macro!()>; |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 const argument |
| 86 | + |
| 87 | +error[E0107]: wrong number of type arguments: expected 0, found 1 |
| 88 | + --> $DIR/macro-fail.rs:40:25 |
| 89 | + | |
| 90 | +LL | let _fail = Example::<external_macro!()>; |
| 91 | + | ^^^^^^^^^^^^^^^^^ unexpected type argument |
| 92 | + |
| 93 | +error[E0107]: wrong number of const arguments: expected 1, found 0 |
| 94 | + --> $DIR/macro-fail.rs:44:15 |
| 95 | + | |
| 96 | +LL | let _fail = Example::<gimme_a_const!()>; |
| 97 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 const argument |
| 98 | + |
| 99 | +error[E0107]: wrong number of type arguments: expected 0, found 1 |
| 100 | + --> $DIR/macro-fail.rs:44:25 |
| 101 | + | |
| 102 | +LL | let _fail = Example::<gimme_a_const!()>; |
| 103 | + | ^^^^^^^^^^^^^^^^ unexpected type argument |
| 104 | + |
| 105 | +error: aborting due to 12 previous errors |
| 106 | + |
| 107 | +For more information about this error, try `rustc --explain E0107`. |
0 commit comments