11error: expected type, found `{`
2- --> $DIR/macro-fail.rs:30 :27
2+ --> $DIR/macro-fail.rs:27 :27
33 |
44LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
55 | ----------------------
@@ -13,7 +13,7 @@ LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
1313 = note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info)
1414
1515error: expected type, found `{`
16- --> $DIR/macro-fail.rs:30 :27
16+ --> $DIR/macro-fail.rs:27 :27
1717 |
1818LL | Example::<gimme_a_const!(marker)>
1919 | ----------------------
@@ -41,7 +41,7 @@ LL | let _fail = Example::<external_macro!()>;
4141 = note: this error originates in the macro `external_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
4242
4343error: unexpected end of macro invocation
44- --> $DIR/macro-fail.rs:40 :25
44+ --> $DIR/macro-fail.rs:36 :25
4545 |
4646LL | macro_rules! gimme_a_const {
4747 | -------------------------- when calling this macro
@@ -50,43 +50,10 @@ LL | let _fail = Example::<gimme_a_const!()>;
5050 | ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
5151 |
5252note: while trying to match meta-variable `$rusty:ident`
53- --> $DIR/macro-fail.rs:30 :8
53+ --> $DIR/macro-fail.rs:27 :8
5454 |
5555LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
5656 | ^^^^^^^^^^^^^
5757
58- error[E0747]: type provided when a constant was expected
59- --> $DIR/macro-fail.rs:14:33
60- |
61- LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
62- | ^^^^^^^^^^^^^^^^^^^^^^
63-
64- error[E0747]: type provided when a constant was expected
65- --> $DIR/macro-fail.rs:14:33
66- |
67- LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
68- | ^^^^^^^^^^^^^^^^^^^^^^
69- |
70- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
71-
72- error[E0747]: type provided when a constant was expected
73- --> $DIR/macro-fail.rs:17:13
74- |
75- LL | Example::<gimme_a_const!(marker)>
76- | ^^^^^^^^^^^^^^^^^^^^^^
77-
78- error[E0747]: type provided when a constant was expected
79- --> $DIR/macro-fail.rs:37:25
80- |
81- LL | let _fail = Example::<external_macro!()>;
82- | ^^^^^^^^^^^^^^^^^
83-
84- error[E0747]: type provided when a constant was expected
85- --> $DIR/macro-fail.rs:40:25
86- |
87- LL | let _fail = Example::<gimme_a_const!()>;
88- | ^^^^^^^^^^^^^^^^
89-
90- error: aborting due to 9 previous errors
58+ error: aborting due to 4 previous errors
9159
92- For more information about this error, try `rustc --explain E0747`.
0 commit comments