1
1
error: expected type, found `{`
2
- --> $DIR/macro-fail.rs:30 :27
2
+ --> $DIR/macro-fail.rs:27 :27
3
3
|
4
4
LL | fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
5
5
| ----------------------
@@ -13,7 +13,7 @@ LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
13
13
= note: this error originates in the macro `gimme_a_const` (in Nightly builds, run with -Z macro-backtrace for more info)
14
14
15
15
error: expected type, found `{`
16
- --> $DIR/macro-fail.rs:30 :27
16
+ --> $DIR/macro-fail.rs:27 :27
17
17
|
18
18
LL | Example::<gimme_a_const!(marker)>
19
19
| ----------------------
@@ -41,7 +41,7 @@ LL | let _fail = Example::<external_macro!()>;
41
41
= note: this error originates in the macro `external_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
42
42
43
43
error: unexpected end of macro invocation
44
- --> $DIR/macro-fail.rs:40 :25
44
+ --> $DIR/macro-fail.rs:36 :25
45
45
|
46
46
LL | macro_rules! gimme_a_const {
47
47
| -------------------------- when calling this macro
@@ -50,43 +50,10 @@ LL | let _fail = Example::<gimme_a_const!()>;
50
50
| ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
51
51
|
52
52
note: while trying to match meta-variable `$rusty:ident`
53
- --> $DIR/macro-fail.rs:30 :8
53
+ --> $DIR/macro-fail.rs:27 :8
54
54
|
55
55
LL | ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
56
56
| ^^^^^^^^^^^^^
57
57
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
91
59
92
- For more information about this error, try `rustc --explain E0747`.
0 commit comments