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