You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format!("Expression is invalid in an array-length type: '{err}'. Only unsigned integer constants, globals, generics, +, -, *, /, and % may be used in this context."),
Copy file name to clipboardexpand all lines: crates/noirc_frontend/src/parser/errors.rs
+31-14
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,33 @@
1
1
use std::collections::BTreeSet;
2
2
3
3
usecrate::lexer::token::Token;
4
-
usecrate::BinaryOp;
4
+
usecrate::Expression;
5
+
use thiserror::Error;
5
6
6
7
use iter_extended::vecmap;
7
8
use noirc_errors::CustomDiagnosticasDiagnostic;
8
9
use noirc_errors::Span;
9
10
11
+
#[derive(Debug,Clone,PartialEq,Eq,Error)]
12
+
pubenumParserErrorReason{
13
+
#[error("Arrays must have at least one element")]
14
+
ZeroSizedArray,
15
+
#[error("Unexpected '{0}', expected a field name")]
16
+
ExpectedFieldName(Token),
17
+
#[error("Expected a ; separating these two statements")]
18
+
MissingSeparatingSemi,
19
+
#[error("constrain keyword is deprecated")]
20
+
ConstrainDeprecated,
21
+
#[error("Expression is invalid in an array-length type: '{0}'. Only unsigned integer constants, globals, generics, +, -, *, /, and % may be used in this context.")]
0 commit comments