]> git.proxmox.com Git - rustc.git/blob - tests/ui/macros/macro-input-future-proofing.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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:4:13
3 |
4 LL | ($ty: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:5:13
11 |
12 LL | ($ty:ty < foo ,) => ();
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:11:14
19 |
20 LL | ($pa: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:13: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:13: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:16:17
43 |
44 LL | ($($ty:ty)* -) => ();
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:17:23
51 |
52 LL | ($($a:ty, $b:ty)* -) => ();
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:18:15
59 |
60 LL | ($($ty: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:19: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