]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-input-future-proofing.stderr
Rollup merge of #55343 - Keruspe:remap-debuginfo-release, r=alexcrichton
[rust.git] / src / test / ui / macros / macro-input-future-proofing.stderr
1 error: `$ty:ty` is followed by `<`, which is not allowed for `ty` fragments
2   --> $DIR/macro-input-future-proofing.rs:14:13
3    |
4 LL |     ($ty:ty <) => (); //~ ERROR `$ty:ty` is followed by `<`, which is not allowed for `ty`
5    |             ^ not allowed after `ty` fragments
6    |
7    = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
8
9 error: `$ty:ty` is followed by `<`, which is not allowed for `ty` fragments
10   --> $DIR/macro-input-future-proofing.rs:15:13
11    |
12 LL |     ($ty:ty < foo ,) => (); //~ ERROR `$ty:ty` is followed by `<`, which is not allowed for `ty`
13    |             ^ not allowed after `ty` fragments
14    |
15    = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
16
17 error: `$pa:pat` is followed by `>`, which is not allowed for `pat` fragments
18   --> $DIR/macro-input-future-proofing.rs:21:14
19    |
20 LL |     ($pa:pat >) => (); //~ ERROR `$pa:pat` is followed by `>`, which is not allowed for `pat`
21    |              ^ not allowed after `pat` fragments
22    |
23    = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
24
25 error: `$pa:pat` is followed by `$pb:pat`, which is not allowed for `pat` fragments
26   --> $DIR/macro-input-future-proofing.rs:23:14
27    |
28 LL |     ($pa:pat $pb:pat $ty:ty ,) => ();
29    |              ^^^^^^^ not allowed after `pat` fragments
30    |
31    = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
32
33 error: `$pb:pat` is followed by `$ty:ty`, which is not allowed for `pat` fragments
34   --> $DIR/macro-input-future-proofing.rs:23:22
35    |
36 LL |     ($pa:pat $pb:pat $ty:ty ,) => ();
37    |                      ^^^^^^ not allowed after `pat` fragments
38    |
39    = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
40
41 error: `$ty:ty` is followed by `-`, which is not allowed for `ty` fragments
42   --> $DIR/macro-input-future-proofing.rs:26:17
43    |
44 LL |     ($($ty:ty)* -) => (); //~ ERROR `$ty:ty` is followed by `-`
45    |                 ^ not allowed after `ty` fragments
46    |
47    = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
48
49 error: `$b:ty` is followed by `-`, which is not allowed for `ty` fragments
50   --> $DIR/macro-input-future-proofing.rs:27:23
51    |
52 LL |     ($($a:ty, $b:ty)* -) => (); //~ ERROR `$b:ty` is followed by `-`
53    |                       ^ not allowed after `ty` fragments
54    |
55    = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
56
57 error: `$ty:ty` is followed by `-`, which is not allowed for `ty` fragments
58   --> $DIR/macro-input-future-proofing.rs:28:7
59    |
60 LL |     ($($ty:ty)-+) => (); //~ ERROR `$ty:ty` is followed by `-`, which is not allowed for `ty`
61    |       ^^^^^^^^ not allowed after `ty` fragments
62    |
63    = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
64
65 error: `$a:expr` is followed by `$b:tt`, which is not allowed for `expr` fragments
66   --> $DIR/macro-input-future-proofing.rs:29:21
67    |
68 LL |     ( $($a:expr)* $($b:tt)* ) => { };
69    |                     ^^^^^ not allowed after `expr` fragments
70    |
71    = note: allowed there are: `=>`, `,` or `;`
72
73 error: aborting due to 9 previous errors
74