rust/tests/ui/macros/macro-followed-by-seq-bad.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
643 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: `$a:expr` is followed by `$b:tt`, which is not allowed for `expr` fragments
2018-12-25 15:56:47 +00:00
--> $DIR/macro-followed-by-seq-bad.rs:7:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | ( $a:expr $($b:tt)* ) => { };
| ^^^^^ not allowed after `expr` fragments
|
= note: allowed there are: `=>`, `,` or `;`
2018-08-08 12:28:26 +00:00
error: `$a:ty` is followed by `$b:tt`, which is not allowed for `ty` fragments
2018-12-25 15:56:47 +00:00
--> $DIR/macro-followed-by-seq-bad.rs:8:13
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | ( $a:ty $($b:tt)* ) => { };
| ^^^^^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 12:28:26 +00:00
error: aborting due to 2 previous errors