diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index ddf4f1a645..f28dfdc525 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -254,7 +254,9 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Check that the mode of the output is valid. if output_type.mode() == Mode::Const || output_type.mode() == Mode::Private { - self.emit_err(TypeCheckerError::finalize_output_mode_must_be_public(output_type.span())); + self.emit_err(TypeCheckerError::finalize_output_mode_must_be_public( + output_type.span(), + )); } });