diff --git a/compiler/noirc_frontend/src/hir/type_check/errors.rs b/compiler/noirc_frontend/src/hir/type_check/errors.rs index e1ca6ed840c..17642843757 100644 --- a/compiler/noirc_frontend/src/hir/type_check/errors.rs +++ b/compiler/noirc_frontend/src/hir/type_check/errors.rs @@ -422,7 +422,7 @@ impl<'a> From<&'a TypeCheckError> for Diagnostic { Diagnostic::simple_error(error.to_string(), String::new(), *span) } TypeCheckError::CyclicType { typ: _, span } => { - Diagnostic::simple_error(error.to_string(), "Cyclic types would have infinite size and are prohibited in Noir".into(), *span) + Diagnostic::simple_error(error.to_string(), "Cyclic types have unlimited size and are prohibited in Noir".into(), *span) } } }