Function sqparse::display_error
source · pub fn display_error(range: Range<usize>, source: &str) -> impl Display + '_Expand description
Returns an implementation of std::fmt::Display that can pretty-print the location of an
error in a source string.
Example
|
2 | int[2] first_prop = ,
| ^