about summary refs log tree commit diff
path: root/tests/ui/macros/remove-repetition-issue-139480.stderr
blob: c2475589ee9addb6492e6400accfd88f3f4f494c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
error: repetition matches empty token tree
  --> $DIR/remove-repetition-issue-139480.rs:2:7
   |
LL |     ($($v: vis)? $name: ident) => {
   |       ^^^^^^^^^
   |
   = note: a `vis` fragment can already be empty
help: remove the `$(` and `)?`
   |
LL -     ($($v: vis)? $name: ident) => {
LL +     ($v: vis $name: ident) => {
   |

error: repetition matches empty token tree
  --> $DIR/remove-repetition-issue-139480.rs:8:20
   |
LL |     ($name: ident $($v: vis)?) => {
   |                    ^^^^^^^^^
   |
   = note: a `vis` fragment can already be empty
help: remove the `$(` and `)?`
   |
LL -     ($name: ident $($v: vis)?) => {
LL +     ($name: ident $v: vis) => {
   |

error: repetition matches empty token tree
  --> $DIR/remove-repetition-issue-139480.rs:17:9
   |
LL |         ($v: vis)?) => {
   |         ^^^^^^^^^
   |
   = note: a `vis` fragment can already be empty
help: remove the `$(` and `)?`
   |
LL -     ($name: ident $/*
LL -         this comment gets removed by the suggestion
LL -         */
LL -         ($v: vis)?) => {
LL +     ($name: ident $v: vis) => {
   |

error: aborting due to 3 previous errors