Function timrs_macro_utils::error::unexpected_token_message

source ·
pub fn unexpected_token_message(expected: &str, got: &str) -> String
Expand description

Generate a message for an Unexpected Token error.

§Examples

use timrs_macro_utils::error::{unexpected_token_message};

assert_eq!(
    unexpected_token_message("`A`", "`B`"),
    "Unexpected Token: Expected `A`, Got `B`"
);