···110110 ),
111111 ParseErrorType::LexError { error: lex_err } => lex_err.to_parse_error_info(),
112112 ParseErrorType::NestedBitArrayPattern => ("BitArray patterns cannot be nested", vec![]),
113113- ParseErrorType::NoCaseClause => (
114114- "This case expression has no clauses",
115115- vec!["See: https://tour.gleam.run/flow-control/case-expressions/".into()],
116116- ),
117113 ParseErrorType::NotConstType => (
118114 "This type is not allowed in module constants",
119115 vec!["See: https://tour.gleam.run/basics/constants/".into()],
···263259 error: LexicalError,
264260 },
265261 NestedBitArrayPattern, // <<<<1>>, 2>>, <<1>> is not allowed in there
266266- NoCaseClause, // a case with no clauses
267262 NoExpression, // between "{" and "}" in expression position, there must be an expression
268263 NoLetBinding, // Bindings and rebinds always require let and must always bind to a value.
269264 NoValueAfterEqual, // = <something other than a value>