This commit is contained in:
Robin Appelman 2020-12-02 00:39:41 +01:00
commit 6975a89b63

View file

@ -15,6 +15,8 @@ use thiserror::Error;
/// An error and related source span, will print out the problematic code fragment and error on `Display`
///
/// ## Example
///
/// ```text
/// . |
/// 2 | [
/// 3 | "broken"
@ -22,6 +24,7 @@ use thiserror::Error;
/// | ^^^^^^^^ Unexpected token, found LiteralString expected one of [SquareClose, Comma, Arrow]
/// 5 | ]
/// 6 |
/// ```
///
#[derive(Debug)]
pub struct SpannedError<'a, T: Error + Debug> {