error/
error.rs

1use chic::Error;
2
3fn main() {
4    let src = r#"This is an example
5content of the slice
6which will be annotated
7with the list of annotations below.
8"#;
9
10    let msg = Error::new("expected type, found `x`")
11        .error(260, 0, 12, src, "found `x`")
12        .help("try using a foobs intead")
13        .to_string();
14
15    println!("{}", msg);
16}