1 error: mismatched closing delimiter: `]`
2 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
4 LL | V = [PhantomData; { [ () ].len() ].len() as isize,
5 | - ^ ^ mismatched closing delimiter
8 | closing delimiter possibly meant for this
10 error: mismatched closing delimiter: `]`
11 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
13 LL | V = [Vec::new; { [].len() ].len() as isize,
14 | - ^ ^ mismatched closing delimiter
16 | | unclosed delimiter
17 | closing delimiter possibly meant for this
19 error: mismatched closing delimiter: `]`
20 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
22 LL | V = [Vec::new; { [0].len() ].len() as isize,
23 | - ^ ^ mismatched closing delimiter
25 | | unclosed delimiter
26 | closing delimiter possibly meant for this
28 error: mismatched closing delimiter: `]`
29 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
31 LL | V = [PhantomData; { [ () ].len() ].len() as isize,
32 | - ^ ^ mismatched closing delimiter
34 | | unclosed delimiter
35 | closing delimiter possibly meant for this
37 error: mismatched closing delimiter: `]`
38 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
40 LL | V = [Vec::new; { [].len() ].len() as isize,
41 | - ^ ^ mismatched closing delimiter
43 | | unclosed delimiter
44 | closing delimiter possibly meant for this
46 error: mismatched closing delimiter: `]`
47 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
49 LL | V = [Vec::new; { [0].len() ].len() as isize,
50 | - ^ ^ mismatched closing delimiter
52 | | unclosed delimiter
53 | closing delimiter possibly meant for this
55 error: mismatched closing delimiter: `]`
56 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
58 LL | V = [PhantomData; { [ () ].len() ].len() as isize,
59 | - ^ ^ mismatched closing delimiter
61 | | unclosed delimiter
62 | closing delimiter possibly meant for this
64 error: mismatched closing delimiter: `]`
65 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
67 LL | V = [Vec::new; { [].len() ].len() as isize,
68 | - ^ ^ mismatched closing delimiter
70 | | unclosed delimiter
71 | closing delimiter possibly meant for this
73 error: mismatched closing delimiter: `]`
74 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
76 LL | V = [Vec::new; { [0].len() ].len() as isize,
77 | - ^ ^ mismatched closing delimiter
79 | | unclosed delimiter
80 | closing delimiter possibly meant for this
82 error: mismatched closing delimiter: `]`
83 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27
85 LL | V = [PhantomData; { [ () ].len() ].len() as isize,
86 | - ^ ^ mismatched closing delimiter
88 | | unclosed delimiter
89 | closing delimiter possibly meant for this
91 error: mismatched closing delimiter: `]`
92 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:24
94 LL | V = [Vec::new; { [].len() ].len() as isize,
95 | - ^ ^ mismatched closing delimiter
97 | | unclosed delimiter
98 | closing delimiter possibly meant for this
100 error: mismatched closing delimiter: `]`
101 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:24
103 LL | V = [Vec::new; { [0].len() ].len() as isize,
104 | - ^ ^ mismatched closing delimiter
106 | | unclosed delimiter
107 | closing delimiter possibly meant for this
109 error[E0282]: type annotations needed
110 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:15:29
112 LL | V = [Vec::new; { [].len() ].len() as isize,
113 | ^^^ cannot infer type for type parameter `T`
115 error[E0282]: type annotations needed
116 --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:26:14
118 LL | V = [Vec::new; { [0].len() ].len() as isize,
119 | ^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Vec`
121 help: consider specifying the generic argument
123 LL | V = [Vec::<T>::new; { [0].len() ].len() as isize,
126 error: aborting due to 14 previous errors
128 For more information about this error, try `rustc --explain E0282`.