We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a40e9 commit cc61bf3Copy full SHA for cc61bf3
1 file changed
crates/felt-macro/src/lib.rs
@@ -198,11 +198,11 @@ fn handle_expr_unary(expr_unary: &ExprUnary) -> Result<HandleExprOutput> {
198
true => LambdaFieldElement::from(&UnsignedInteger::from_u64(0)),
199
})),
200
Expr::Lit(ExprLit {
201
- lit: Lit::Int(_lit_int),
+ lit: Lit::Int(_) | Lit::Byte(_),
202
..
203
}) => Err(Error::new_spanned(
204
expr,
205
- "The `!` logical inversion operator is applicable to the `Felt` type",
+ "The `!` logical inversion operator is not applicable to the `Felt` type",
206
)),
207
Expr::Lit(_) => Err(Error::new_spanned(
208
0 commit comments