pub fn error(reason: &str, span: &Span) -> Syntax {
        Syntax::error_with_note(
            reason,
            Note {
                span: span.clone(),
                hint: None,
            },
        )
    }
Creates a new static error with a single note that does not have a hint.
passerine/src/compiler/syntax.rs