The current display message is defined as
|
#[fail(display = "discovered {} but expected {}", _0, _1)] |
but based on the usage in
|
pub fn unexpected_token(expected: impl Display, discovered: impl Display) -> Error { |
|
Self::from(ErrorKind::UnexpectedToken( |
|
expected.to_string(), |
|
discovered.to_string(), |
|
)) |
|
} |
it should be the other way around.