pub fn error_with_note(reason: &str, note: Note) -> Syntax {
        Syntax {
            reason: reason.to_string(),
            notes: vec![note],
        }
    }
Creates a new static error with a single note that may or may not have a
hint.
passerine/src/compiler/syntax.rs