rust/tests/ui/macros/macro-input-future-proofing.stderr

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

75 lines
2.7 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: `$ty:ty` is followed by `<`, which is not allowed for `ty` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:4:13
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($ty:ty <) => ();
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 07:28:26 -05:00
error: `$ty:ty` is followed by `<`, which is not allowed for `ty` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:5:13
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($ty:ty < foo ,) => ();
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 07:28:26 -05:00
error: `$pa:pat` is followed by `>`, which is not allowed for `pat` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:11:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($pa:pat >) => ();
| ^ not allowed after `pat` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
2018-08-08 07:28:26 -05:00
error: `$pa:pat` is followed by `$pb:pat`, which is not allowed for `pat` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:13:14
2018-08-08 07:28:26 -05:00
|
LL | ($pa:pat $pb:pat $ty:ty ,) => ();
| ^^^^^^^ not allowed after `pat` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
2018-08-08 07:28:26 -05:00
error: `$pb:pat` is followed by `$ty:ty`, which is not allowed for `pat` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:13:22
2018-08-08 07:28:26 -05:00
|
LL | ($pa:pat $pb:pat $ty:ty ,) => ();
| ^^^^^^ not allowed after `pat` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
2018-08-08 07:28:26 -05:00
error: `$ty:ty` is followed by `-`, which is not allowed for `ty` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:16:17
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($($ty:ty)* -) => ();
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 07:28:26 -05:00
error: `$b:ty` is followed by `-`, which is not allowed for `ty` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:17:23
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($($a:ty, $b:ty)* -) => ();
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 07:28:26 -05:00
error: `$ty:ty` is followed by `-`, which is not allowed for `ty` fragments
--> $DIR/macro-input-future-proofing.rs:18:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | ($($ty:ty)-+) => ();
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
2018-08-08 07:28:26 -05:00
error: `$a:expr` is followed by `$b:tt`, which is not allowed for `expr` fragments
2018-12-25 09:56:47 -06:00
--> $DIR/macro-input-future-proofing.rs:19:21
2018-08-08 07:28:26 -05:00
|
LL | ( $($a:expr)* $($b:tt)* ) => { };
| ^^^^^ not allowed after `expr` fragments
|
= note: allowed there are: `=>`, `,` or `;`
2018-08-08 07:28:26 -05:00
error: aborting due to 9 previous errors