]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-67377-invalid-syntax-in-enum-discriminant.stderr
Point at unclosed delimiters as part of the primary MultiSpan
[rust.git] / src / test / ui / parser / issue-67377-invalid-syntax-in-enum-discriminant.stderr
1 error: mismatched closing delimiter: `]`
2   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
3    |
4 LL |         V = [PhantomData; { [ () ].len() ].len() as isize,
5    |             -             ^              ^ mismatched closing delimiter
6    |             |             |
7    |             |             unclosed delimiter
8    |             closing delimiter possibly meant for this
9
10 error: mismatched closing delimiter: `]`
11   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
12    |
13 LL |         V = [Vec::new; { [].len()  ].len() as isize,
14    |             -          ^           ^ mismatched closing delimiter
15    |             |          |
16    |             |          unclosed delimiter
17    |             closing delimiter possibly meant for this
18
19 error: mismatched closing delimiter: `]`
20   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
21    |
22 LL |         V = [Vec::new; { [0].len() ].len() as isize,
23    |             -          ^           ^ mismatched closing delimiter
24    |             |          |
25    |             |          unclosed delimiter
26    |             closing delimiter possibly meant for this
27
28 error: mismatched closing delimiter: `]`
29   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
30    |
31 LL |         V = [PhantomData; { [ () ].len() ].len() as isize,
32    |             -             ^              ^ mismatched closing delimiter
33    |             |             |
34    |             |             unclosed delimiter
35    |             closing delimiter possibly meant for this
36
37 error: mismatched closing delimiter: `]`
38   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
39    |
40 LL |         V = [Vec::new; { [].len()  ].len() as isize,
41    |             -          ^           ^ mismatched closing delimiter
42    |             |          |
43    |             |          unclosed delimiter
44    |             closing delimiter possibly meant for this
45
46 error: mismatched closing delimiter: `]`
47   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
48    |
49 LL |         V = [Vec::new; { [0].len() ].len() as isize,
50    |             -          ^           ^ mismatched closing delimiter
51    |             |          |
52    |             |          unclosed delimiter
53    |             closing delimiter possibly meant for this
54
55 error: mismatched closing delimiter: `]`
56   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
57    |
58 LL |         V = [PhantomData; { [ () ].len() ].len() as isize,
59    |             -             ^              ^ mismatched closing delimiter
60    |             |             |
61    |             |             unclosed delimiter
62    |             closing delimiter possibly meant for this
63
64 error: mismatched closing delimiter: `]`
65   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
66    |
67 LL |         V = [Vec::new; { [].len()  ].len() as isize,
68    |             -          ^           ^ mismatched closing delimiter
69    |             |          |
70    |             |          unclosed delimiter
71    |             closing delimiter possibly meant for this
72
73 error: mismatched closing delimiter: `]`
74   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
75    |
76 LL |         V = [Vec::new; { [0].len() ].len() as isize,
77    |             -          ^           ^ mismatched closing delimiter
78    |             |          |
79    |             |          unclosed delimiter
80    |             closing delimiter possibly meant for this
81
82 error: mismatched closing delimiter: `]`
83   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
84    |
85 LL |         V = [PhantomData; { [ () ].len() ].len() as isize,
86    |             -             ^              ^ mismatched closing delimiter
87    |             |             |
88    |             |             unclosed delimiter
89    |             closing delimiter possibly meant for this
90
91 error: mismatched closing delimiter: `]`
92   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
93    |
94 LL |         V = [Vec::new; { [].len()  ].len() as isize,
95    |             -          ^           ^ mismatched closing delimiter
96    |             |          |
97    |             |          unclosed delimiter
98    |             closing delimiter possibly meant for this
99
100 error: mismatched closing delimiter: `]`
101   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
102    |
103 LL |         V = [Vec::new; { [0].len() ].len() as isize,
104    |             -          ^           ^ mismatched closing delimiter
105    |             |          |
106    |             |          unclosed delimiter
107    |             closing delimiter possibly meant for this
108
109 error[E0282]: type annotations needed
110   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:29
111    |
112 LL |         V = [Vec::new; { [].len()  ].len() as isize,
113    |                             ^^^ cannot infer type for type parameter `T`
114
115 error[E0282]: type annotations needed
116   --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:14
117    |
118 LL |         V = [Vec::new; { [0].len() ].len() as isize,
119    |              ^^^^^^^^ cannot infer type for type parameter `T`
120
121 error: aborting due to 14 previous errors
122
123 For more information about this error, try `rustc --explain E0282`.