1 use annotate_snippets
::{
2 display_list
::{DisplayList, FormatOptions}
,
3 snippet
::{Annotation, AnnotationType, Slice, Snippet}
,
7 let snippet
= Snippet
{
8 title
: Some(Annotation
{
9 label
: Some("mismatched types"),
11 annotation_type
: AnnotationType
::Error
,
18 origin
: Some("src/format.rs"),
25 origin
: Some("src/display.rs"),
36 let dl
= DisplayList
::from(snippet
);